Using Jenkins with boost.test unit tests

后端 未结 3 1415
小蘑菇
小蘑菇 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条回答
  •  梦毁少年i
    2020-12-24 08:34

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

    I've added a parameter to Dave Bacher's answer because apparently Boost Test was using a non-zero exit code to indicate a test failure but Jenkins was interpreting this as a more fundamental failure, and thus stopping without processing the test results.

    exit 201
    Build step 'Execute Windows batch command' marked build as failure`
    

提交回复
热议问题