googletest - gtest more than three tests in one case -
i new c++ , gtest. have case 29 tests, , execute them @ once. seems gtest process 3 tests @ time, shows:
[==========] running 29 tests 1 test case. [----------] global test environment set-up. [----------] 29 tests stringtests [ run ] stringtests.delimitedstringcomponent [ ok ] stringtests.delimitedstringcomponent (0 ms) [ run ] stringtests.booltostring [ ok ] stringtests.booltostring (0 ms) [ run ] stringtests.checkfixsasnull [ ok ] stringtests.checkfixsasnull (0 ms) [ run ] stringtests.doubletostring
then, stopped. wrong it?
does crash or stops giving output?
in first case, crashing, may crash in tested code. example, assert kill proccess instantly. not caught gtest.
in case stops giving output may infinite loop or heavy calculus. odds still calculating. in case, adding several scoped_trace slows tests 1 or 2 order of magnitude. of tested operations may slow , can take several seconds or minutes in finishing test.
we need more data catch exact problem. hope helps!
Comments
Post a Comment