Skip to content

Instantly share code, notes, and snippets.

@abelardojarab
Created November 8, 2017 21:02
Show Gist options
  • Save abelardojarab/f4c24977e2f63993e08be2a6571fb94b to your computer and use it in GitHub Desktop.
Save abelardojarab/f4c24977e2f63993e08be2a6571fb94b to your computer and use it in GitHub Desktop.
Howto print full list of google tests and define a gtest filter

Get list of all the available google tests

Get all testcases by running tests with --gtest_list_tests

Run specific google tests

To run only some unit tests you could use --gtest_filter=Test_Cases1* command line option with value which is regular expression.

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