Skip to content

Slightly improve the test framework#84

Merged
LuernOutOfOrder merged 5 commits intodevelopfrom
75-improve-test-framework
Jan 20, 2026
Merged

Slightly improve the test framework#84
LuernOutOfOrder merged 5 commits intodevelopfrom
75-improve-test-framework

Conversation

@LuernOutOfOrder
Copy link
Owner

This pull request introduces a new TestSuiteBehavior enum to allow marking test suites as "Default" or "Skipped", and updates the test framework to support skipping both test suites and individual test cases. It also improves test result reporting to account for skipped tests and suites. Additionally, it refactors the test suite initialization and registration process, moving the suite registration into a dedicated suites module for better organization. Some minor code style and import ordering changes are also included.

Test framework enhancements:

  • Added the TestSuiteBehavior enum and updated the TestSuite struct and initialization to support marking test suites as "Default" or "Skipped". Test cases also gain a Skipped behavior. [1] [2]
  • Updated the test runner logic to skip suites and test cases marked as skipped, and to track/report the number of skipped tests and suites in the summary output. [1] [2] [3]

Test suite and case usage:

  • Updated all test suite definitions throughout the codebase to set the new behavior field, typically to TestSuiteBehavior::Default (or Skipped for the NS16550 suite as an example). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Test suite registration refactor:

  • Moved the suite registration logic into a new suites module, simplifying the main mod.rs and making suite management more maintainable. [1] [2]

Code cleanup and style:

Documentation:

  • Updated documentation to reflect the new test suite and test case behaviors, and clarified file paths in examples. [1] [2]

Other minor changes include updating the crate version in Cargo.toml to 0.3.2.

@LuernOutOfOrder LuernOutOfOrder added this to the v0.3.5 milestone Jan 20, 2026
@LuernOutOfOrder LuernOutOfOrder self-assigned this Jan 20, 2026
@LuernOutOfOrder LuernOutOfOrder added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 20, 2026
@LuernOutOfOrder LuernOutOfOrder changed the title Slightly Slightly improve the test framework Jan 20, 2026
@LuernOutOfOrder LuernOutOfOrder merged commit 90291a3 into develop Jan 20, 2026
1 check passed
@LuernOutOfOrder LuernOutOfOrder deleted the 75-improve-test-framework branch January 20, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant