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 regexpattern
. For example: `–gtest_filter=”ConvolutionLayerTest.*” -
--gtest_shuffle
: Run unit tests in random order.
Advertisements