cargo2junit 0.1.15

Converts cargo's json output (from stdin) to JUnit XML (to stdout)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
  <testsuite id="0" name="cargo test #0" package="testsuite/cargo test #0" tests="2" errors="0" failures="1" hostname="localhost" timestamp="2022-07-26T19:36:56.949202548Z" time="0">
    <testcase name="fails" time="0" classname="tests">
      <failure type="cargo test" message="failed tests::fails"><![CDATA[thread 'tests::fails' panicked at 'assertion failed: `(left == right)`
  left: `4`,
 right: `3`', src/lib.rs:10:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
]]></failure>
    </testcase>
    <testcase name="success" time="0" classname="tests" />
  </testsuite>
</testsuites>