Command-line options for Google Test program

Google Test can be used to write unit tests for C++ programs. Some of the useful command-line options and flags available to such a program are:

  • --gtest_list_tests: Lists the names of all the tests available.

  • --gtest_filter=pattern: Run only the tests whose names match the regex pattern. For example: `–gtest_filter=”ConvolutionLayerTest.*”

  • --gtest_shuffle: Run unit tests in random order.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s