我使用their plugin将TeamCity与Cppunit集成在一起。
我正试图摆脱每次测试后附加的'\n'
。我尝试从teamcity_cppunit.cpp中评论出details.append("\n");
,但这并不能解决问题。我没有找到'\n'
附加的其他地方。
基本上我想得到这个:
16> Description: Executing Unit Tests...
16> Running 4 test cases...
16> CoreTechUnitTests::CLogExtractorTestCase::CreateLogExtractorTest... [0.2503s]
16> CoreTechUnitTests::CLogExtractorTestCase::CreateOutputFolderTest... [0.0057s]
16> CoreTechUnitTests::CLogExtractorTestCase::WriteLogFileTest... [0.0050s]
16> CoreTechUnitTests::CLogExtractorTestCase::LastRunUnitTest... [0.0001s]
16> Total test execution took 0.2612s
16>
16> OK (4)
与此相反:
9> CoreTechUnitTests::CMcMd5TestCase::MD5Test...CoreTechUnitTests::CMcMd5TestCase::MD5Test [0.0001s] : OK
9>
9> CoreTechUnitTests::CByteBufferTest::TestBuffer...CoreTechUnitTests::CByteBufferTest::TestBuffer [0.0003s] : OK
9>
9> CoreTechUnitTests::CETWLogConsumerTestCase::CreateETWReaderTests...CoreTechUnitTests::CETWLogConsumerTestCase::CreateETWReaderTests [0.0106s] : OK
9>
9> CoreTechUnitTests::CETWLogConsumerTestCase::ExtractEventSystemTimeTests...CoreTechUnitTests::CETWLogConsumerTestCase::ExtractEventSystemTimeTests [0.0001s] : OK
我想知道是否有人知道'\n'
的附加位置。
答案 0 :(得分:0)
看起来在第71行的teamcity_messages.cpp中有一个写入输出流的endl:
*m_out << endl;
另一个值得关注的地方是第153行的teamcity_boost.cpp:
out << endl;
看看是否删除其中一个就可以了。