Skip to main content
RFC Status: This document is part of the OpenDocs RFC and subject to change based on community feedback.

Testing Your Implementation

Comprehensive testing ensures your OpenDocs implementation correctly extracts, organizes, and outputs documentation. This guide covers unit tests, integration tests, and testing strategies.

Unit Testing Strategies

Testing DocItem Extraction

Testing DocBlock Extraction

Testing Documentation Sets

Integration Tests

Testing Complete Workflow

Testing Cross-Project References

Testing File Formats

JSON Format Tests

JSON $ref Tests

Test Fixtures

Creating Reusable Test Data

Using Fixtures in Tests

Best Practices

1. Test Edge Cases

2. Validate Output

3. Test Performance

4. Use Snapshots

See Also


This guide is part of the OpenDocs Specification RFC. Help us improve it by sharing your testing strategies.