google / googletest

GoogleTest - Google Testing and Mocking Framework

Home Page:https://google.github.io/googletest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flag to also run skipped tests

c0d1f1ed opened this issue · comments

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.

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.

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.