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

New command line options for fixtures #762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koy-rehme-bae
Copy link

🍍

This merge request adds three command-line options to fixtures:

  • -N -- Like -n, but will only select a single test that matches the name exactly.
  • -G -- Like -g, but will only select a single group that matches the name exactly.
  • -d -- Dry runs the tests. I find this useful to know exactly which tests will be run after applying filters.

If both -n and -N are provided, selected tests match either one. The same applies to -g and -G.

I'm sure there will be some bikeshedding on the characters used for the options; feedback is welcome.

@mvandervoord
Copy link
Member

This is looking great. I think it's also worthwhile to add the new features to unity_fixture_Test.c. You can see an example of testing -n in TEST(UnityCommandOptions, OptionSelectTestByName)

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