Skip to content

Test infrastructure: improve test organization and documentation #60

Description

@robtaylor

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

  1. Add test README - Document test structure and how to add tests
  2. Categorize tests - Group by feature area (lexer, parser, HIR, MIR, etc.)
  3. Add coverage reporting - Use cargo-llvm-cov or similar
  4. Fix flakey tests - Investigate and fix CI reliability issues
  5. Enable more tests in CI - Consider enabling integration tests
  6. Add test templates - Provide example tests for common patterns

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions