split_tests
split_tests copied to clipboard
What is the expected junit xml format?
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?
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?