Using Jenkins with boost.test unit tests

后端 未结 3 1412
小蘑菇
小蘑菇 2020-12-24 07:50

I have done a bit of Googling in this area and have found many discussions about getting Jenkins to understand boost.test\'s XML output format, but no canonical reference. <

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 08:12

    xUnit parsing works for me using Jenkins 1.498, xUnit 1.52, boost 1.42. I have a new project using boost 1.53 and the XML output format appears to be the same to my all-to-humanly-error-prone eye, but since I haven't yet set up unit tests in Jenkins, I'm not 100% sure the output is compatible.

    As recommended in the xUnit plugin comments, I'm running the Boost test program with:

    run_test --log_format=XML --log_sink=results.xml --log_level=all --report_level=no
    

    I have my post-build xUnit step configured to parse results.xml with the BoostTest-1.x format.

    If you're still having problems, perhaps you can update your question with more details about your versions and how you generate the test output.

提交回复
热议问题