Skip to content

Conversation

jserv
Copy link
Collaborator

@jserv jserv commented Aug 22, 2025

This improves code organization for the test suite while preserving all existing functionality.

  • Add reusable test runner functions, such as run_expr_tests
  • Consolidate repetitive test patterns into data arrays
  • Create unified error reporting through report_test_failure()
  • Suppress compiler error output and "Aborted (core dumped)" messages
  • Add progress indicators and colored output support
  • Improve test categorization and summary reporting

Summary by Bito

This pull request enhances the test suite by introducing reusable test runner functions, consolidating repetitive test patterns, and improving error reporting. It also adds support for progress indicators and colored output, aiming to streamline the testing process while maintaining existing functionality.

This improves code organization for the test suite while preserving all
existing functionality.
- Add reusable test runner functions, such as run_expr_tests
- Consolidate repetitive test patterns into data arrays
- Create unified error reporting through report_test_failure()
- Suppress compiler error output and "Aborted (core dumped)" messages
- Add progress indicators and colored output support
- Improve test categorization and summary reporting
@jserv
Copy link
Collaborator Author

jserv commented Aug 22, 2025

TODO: Selector expressions and categories.

Add -k boolean matcher, -m include markers, -x exclude markers, plus --list to enumerate the selected set.
Test files can carry lightweight header tags in comments (e.g., // @category: parser, codegen, // @arch: riscv, // @stage: stage2). This mirrors tag/marker selection used by mature harnesses like pytest’s -k/markers approach.

@jserv jserv merged commit 4231457 into master Aug 22, 2025
12 checks passed
@jserv jserv deleted the improve-test-suite branch August 22, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants