I have a C++ project built using CMake. Following is what I do to build it.
mkdir build && cd build && cmake .. && make
make test
runs all the unit tests which are built gtest.
Given that I have a test like below, how can I run only one specific test?
// This is MyClassAPI_test.cpp
TEST(MyClassAPI_test, MyClassAPITest) {
EXPECT_TRUE(true);
}
I tried running
make check TESTS='MyClassAPI_test'
but it does not work?