[bind10-dev] having fail tests in gtest
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Tue Apr 27 09:43:38 UTC 2010
According to today's meeting I've (re)checked the googletest manual
page and found how to have failing tests without 'if 0' them:
http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide#Temporarily_Disabling_Tests
I adopted this in r1798 for one test that currently fails.
This test case is now built, but 'make check' simply ignores it:
...
[----------] Global test environment tear-down
[==========] 240 tests from 35 test cases ran. (306 ms total)
[ PASSED ] 240 tests.
YOU HAVE 1 DISABLED TEST
But you can manually force it to be tested (which would fail, of
course):
% ./run_unittests --gtest_also_run_disabled_tests
...
[----------] Global test environment tear-down
[==========] 241 tests from 35 test cases ran. (304 ms total)
[ PASSED ] 240 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] Rdata_DS_Test.DISABLED_badText_DS
1 FAILED TEST
---
JINMEI, Tatuya
More information about the bind10-dev
mailing list