split_tests icon indicating copy to clipboard operation
split_tests copied to clipboard

What is the expected junit xml format?

Open roykolak opened this issue 1 year ago • 1 comments

I have junit xml that looks like this...

<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Specs" time="57.138" tests="68" failures="0">
  <testsuite name="Root Suite" timestamp="2023-12-27T17:11:58" tests="0" time="0.000" failures="0">
  </testsuite>
  <testsuite  timestamp="2023-12-27T17:11:58" tests="2"  file="/path/to/file.spec.ts" time="0.000" failures="0">
    <testcase file="/path/to/file.spec.ts">
    </testcase>
    <testcase time="0.198" file="/path/to/file.spec.ts">
    </testcase>
  </testsuite>
</testsuites>

But I'm getting "missing file time" logs in the console. I thought this was the expected xml format, is that not correct?

roykolak avatar Dec 27 '23 17:12 roykolak

The structure looks correct.

I think the problem might be that you have an absolute path to the file, and the script expects a path relative to the project root. Could you confirm that?

leonid-shevtsov avatar Jan 22 '24 09:01 leonid-shevtsov