This documentation relates to QuickBuild 9.0.x
Select here if you are using a different version

Publish Boost Test Report

To publish Boost Test report, you only need two steps:

  1. Generate Boost Test XML report.
  2. Add a Publish Boost Test Report step by choosing Settings->Steps->Publish ->Boost Test Report in step menu.

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:

run_tests --log_format=XML --report_level=detailed

and below XML report will be generated:


<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>

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 for more details.

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.