История изменений
Исправление dataman, (текущая версия) :
как её заставить выводить результат в формате junit xml
Я ошибся, есть reporter_junit
. Нужно добавлять --reporter junit
в параметры бинарника.
$ ./boost_ut_hello_world --reporter junit
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="all" tests="3" failures="0" time="0">
<testsuite classname="./boost_ut_hello_world" name="global" tests="3" errors="0" failures="0" skipped="0" time="0" version="201">
<testcase classname="global" name="hello world" tests="3" errors="0" failures="0" skipped="0" time="0" status="PASSED">
<system-out>
Running test "hello world"...
</system-out>
</testcase>
</testsuite>
</testsuites>
$ ./boost_ut_hello_world -h
./boost_ut_hello_world [<test name|pattern|tags> ... ] options
with options:
-? -h --help display usage information
-l --list-tests list all/matching test cases
-t, --list-tags list all/matching tags
-s, --success include successful tests in output
-o, --out <filename> output filename
-r, --reporter <name> reporter to use (defaults to console)
-n, --name <name> suite name
-a, --abort abort at first failure
-x, --abortx <no. failures> abort after x failures
-d, --durations show test durations
-D, --min-duration <seconds> show test durations for [...]
-f, --input-file <filename> load test names to run from a file
--list-test-names-only list all/matching test cases names only
--list-reporters list all reporters
--order <decl|lex|rand> test case order (defaults to decl)
--rng-seed <'time'|number> set a specific seed for random numbers
--use-colour <yes|no> should output be colourised
--libidentify report name and version according to libidentify standard
--wait-for-keypress <never|start|exit|both>waits for a keypress before exiting
$ ./boost_ut_hello_world --list-reporters
available reporter:
console (default)
junit
Исходная версия dataman, :
как её заставить выводить результат в формате junit xml
Я ошибся, есть reporter_junit
. Нужно добавлять --reporter junit
в параметры бинарника.
$ ./boost_ut_hello_world --reporter junit
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="all" tests="3" failures="0" time="0">
<testsuite classname="./boost_ut_hello_world" name="global" tests="3" errors="0" failures="0" skipped="0" time="0" version="201">
<testcase classname="global" name="hello world" tests="3" errors="0" failures="0" skipped="0" time="0" status="PASSED">
<system-out>
Running test "hello world"...
</system-out>
</testcase>
</testsuite>
</testsuites>