Can CppUnit output HTML or XML results?

Is CppUnit able to generate an html or xml file for its test cases and test results?

+3
source share
2 answers

To output the test result in xml format, use XmlOutputter .

Regarding creating a list of test cases to run, see this post .

+4
source

Since you noted the question using VC ++ 6.0, something else valuable to understand is a convenient line:

outputter.setLocationFormat("%p(%l) : ");

post-build, unit test, - CompilerOutputter , stdout, , :

compiling and linking ... bla bla bla
Calling post build step: Run unit tests
........F.....
c:\path\to\code\testFlintstones.cpp(42) : Assert (fred.kiss(wilma)) failed.

, 42 testFlinstones. . , , , .

+3

Source: https://habr.com/ru/post/1736949/


All Articles