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

Flag to also run skipped tests #3831

Open
c0d1f1ed opened this issue May 12, 2022 · 2 comments
Open

Flag to also run skipped tests #3831

c0d1f1ed opened this issue May 12, 2022 · 2 comments

Comments

@c0d1f1ed
Copy link

c0d1f1ed commented May 12, 2022

It would be very useful to be able to ignore GTEST_SKIP() through a command-line flag (just like DISABLED_).

A common scenario is that big important changes in a project may cause tests deemed of lesser importance to fail, so these tests are disabled/skipped to not block progress but they still need to be looked into at a later point. If instead of requiring code changes to re-enable them locally, we could run them with a simple flag added to the command line, that would streamline debugging and avoid mistakes.

@sethrj
Copy link

sethrj commented May 14, 2022

The --gtest_also_run_disabled_tests command-line flag forcibly run all the DISABLED_ tests, although it doesn't (to my knowledge) circumvent the GTEST_SKIP() macro.

@c0d1f1ed c0d1f1ed changed the title Running skipped or disabled tests Flag to also run skipped tests May 16, 2022
@c0d1f1ed
Copy link
Author

The --gtest_also_run_disabled_tests command-line flag forcibly run all the DISABLED_ tests, although it doesn't (to my knowledge) circumvent the GTEST_SKIP() macro.

Thanks for pointing that out! It was indeed a GTEST_SKIP()'ed test I was trying to run, and I assumed DISABLED_ was also missing a flag to force running them. I've adjusted the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants