Normally, if I type make test
with the cmake generated makefile, it will show something like this:
Start 1: UnitTest
1/2 Test #1: UnitTest .........................***Failed 0.01 sec
Start 2: PerfTest
2/2 Test #2: PerfTest ......................... Passed 0.01 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.02 sec
The following tests FAILED:
1 - UnitTest (Failed)
But what if I want to see the real output from googletest, which tells me exactly what failed? Is there a way to force cmake/ctest spit it out?
UPDATE: now I know I can type ctest -V
to show detailed output, but how can I achieve the same using make test
?
我发现我可以这样做:
make test ARGS=-V
you can take a look to Testing directory on your build directory.
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.