0
我想爲我的單元測試Jamfile有兩個不同的目標。boost build中的多個構建目標
這是我目前的目錄結構:
Jamroot
src/Jamfile
test/Jamfile
,這是我的測試/ Jamfile中:
using testing ;
lib boost_unit_test_framework ;
run [ glob *.cpp ] boost_unit_test_framework
: --log_format=XML --log_sink=results.xml --log_level=all --report_level=no
:
: <define>BOOST_TEST_DYN_LINK : test-xml ;
run [ glob *.cpp ] boost_unit_test_framework
:
:
: <define>BOOST_TEST_DYN_LINK : test ;
我希望能夠開發時運行b2 test
,並有我的CI運行b2 test-xml
到爲Jenkins生成單元測試報告。有了這個Jamfile的,我只能這樣做,如果我在「測試」子目錄是目前,如果我嘗試b2 test-xml
從Jamroot中的目錄,它說
不知道如何使測試XML
任何想法?
您是否嘗試過運行'B2測試//test-xml'? –
我試過了,它不起作用。:-( – Carneiro