Summary
The test infrastructure could benefit from better organization and documentation.
Current Issues
Test organization
- Test files spread across multiple locations
- Inconsistent naming conventions
- No clear categorization of what each test covers
- Some tests in source files, some in test_data
Documentation
Test tooling
mini_harness custom framework lacks documentation
- No test coverage reporting
- No way to easily run subset of tests by category
CI concerns
- Some tests skipped on Windows (
if stdx::IS_CI && cfg!(windows))
- Integration tests disabled by default (
RUN_DEV_TESTS)
- Comment mentions tests are "flakey" regarding linker invocation
Suggested Improvements
- Add test README - Document test structure and how to add tests
- Categorize tests - Group by feature area (lexer, parser, HIR, MIR, etc.)
- Add coverage reporting - Use cargo-llvm-cov or similar
- Fix flakey tests - Investigate and fix CI reliability issues
- Enable more tests in CI - Consider enabling integration tests
- Add test templates - Provide example tests for common patterns
Related
Summary
The test infrastructure could benefit from better organization and documentation.
Current Issues
Test organization
Documentation
Test tooling
mini_harnesscustom framework lacks documentationCI concerns
if stdx::IS_CI && cfg!(windows))RUN_DEV_TESTS)Suggested Improvements
Related