View Source

To publish [Boost Test|http://www.boost.org] report, you only need two steps:
# Generate Boost Test *XML* report.
# Add a Publish Boost Test Report step by choosing Settings->Steps->_Publish ->Boost Test Report_ in step menu.

h2. Generate Boost XML Report
Boost.Test can output test reports in XML format. Suppose the program that runs your tests is called run_tests, then we can get an XML report by running that program as:
{code}
run_tests --log_format=XML --report_level=detailed
{code}

and below XML report will be generated:
{code}

<TestLog>
<TestSuite name="MyBoostTest">
<TestSuite name="FooSuites">
<TestCase name="simpleTestCase">
<Message file="./boost/test/impl/results_collector.ipp"
line="210"><![CDATA[Test case simplePass did not check any assertions]]></Message>
<TestingTime>35</TestingTime>
</TestCase>
<TestCase name="checkFailure">
<Error file="main.cpp" line="30"><![CDATA[check add(2, 2) == 4 failed]]></Error>
<TestingTime>57</TestingTime>
</TestCase>
<TestCase name="multipleCheckFailures">
<Error file="main.cpp" line="25"><![CDATA[check add(2, 2) == 1 failed]]></Error>
<Error file="main.cpp" line="27"><![CDATA[check add(2, 2) == 3 failed]]></Error>
<TestingTime>63</TestingTime>
</TestCase>
</TestSuite>
</TestSuite>
</TestLog>
{code}

h2. Publish Boost Test Report
Add _*Publish Boost Test Report*_ step to your build workflow. If you have several report sets, you can add several publish Boost Test Report steps with different report set names. Reference [this page|Publish Build Reports] for more details.