Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake test preset for running non-root tests #130

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

abeltrano
Copy link
Contributor

@abeltrano abeltrano commented Jan 25, 2024

Type

  • Bug fix
  • Feature addition
  • Feature update
  • Documentation
  • Build Infrastructure

Side Effects

  • Breaking change
  • Non-functional change

Goals

Technical Details

  • Annotate tests requiring root by suffixing the string (root) to the test name so they can be filtered with a regex.
  • Add non-root CMake test preset with a regex to exclude all tests with the (root) string.
  • Remove local CMake test preset since this requires ctest labels.
  • Add Testing ctest temporary directory to .gitignore.
  • Enable short-progress test output for all test presets.

Test Results

  • Ran non-root ctest preset from VSCode and verified all tests pass:
image

Reviewer Focus

  • None

Future Work

  • One Catch2 passes tags as labels, the (root) string should be removed from test names.

Checklist

  • Build target all compiles cleanly.
  • clang-format and clang-tidy deltas produced no new output.
  • Newly added functions include doxygen-style comment block.

@abeltrano abeltrano requested a review from a team as a code owner January 25, 2024 03:41
@abeltrano abeltrano merged commit 07be44c into develop Jan 25, 2024
4 checks passed
@abeltrano abeltrano deleted the fixtestpresets branch January 25, 2024 04:01
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.

1 participant