cpanel / Test2-Harness-Renderer-JUnit

An implementation of JUnit output for Test2::Harness
https://metacpan.org/pod/Test2::Harness::Renderer::JUnit
2 stars 4 forks source link

Change for future version of Test2-Harness #7

Closed atoomic closed 4 years ago

atoomic commented 4 years ago

The major_refactor branch seems clean, and now reuse the same job id on rerun.

This is adding the job id to the xml output and avoiding removing a job before it's finish. This is an issue when for example running multiple times the same test like shown here:

JUNIT_TEST_FILE="/tmp/output.xml" ALLOW_PASSING_TODOS=1 yath test -j18 --retry=12 --renderer=JUnit t/random.t t/random.t t/random.t t/random.t t/random.t;

with something like

#╰─> cat t/random.t
use Test::More;

is int rand(4), 1, "1";

done_testing;
toddr commented 4 years ago

These commits have been pulled in for the most part. Thank you.