Hi,
I’m using Cucumber JS and trying to correct the autodetection for timings.
CircleCI knows the tests are present and has registered them correctly. In the store_test_results
step:
- store_test_results:
path: packages/e2e-test/test-results.xml
In the step output in CircleCI step
Archiving the following test results
* /home/circleci/project/packages/e2e-test/test-results.xml
Total size uploaded: 3.0 KiB
It shows 200 tests run and the insights of 10 parallel runs with timings. So far, so good.
But when I run the test the next time, I get this error:
Error autodetecting timing type, falling back to weighting by name. Autodetect no matching filename or classname. If file names are used, double check paths for absolute vs relative.
Example input file: "features/001-abc/test.feature"
Example file from timings: ""
The Cucumber command is:
CHUNK=circleci tests glob "features/**/*.feature" | circleci tests split --split-by=timings
./../node_modules/.bin/cucumber-js --require steps/index.ts --require-module ts-node/register --retry 5 --no-strict --exit --publish-quiet --format @cucumber/pretty-formatter --format junit:./test-results.xml ${CHUNK}
An example of the contents of `test-results.xml` file:
<?xml version="1.0"?>
<testsuite failures="0" skipped="0" name="cucumber-js" time="10.494652437999997" tests="2">
<testcase classname="{713} HO100310 - normal case" name="Resolving one pair of HO100310 exceptions" time="6.6794609959999995">
<system-out><![CDATA[Given the data for this test is in the PNC................................passed
And "input-message" is received...........................................passed
Given I am logged in as "generalhandler"..................................passed
And I view the list of exceptions.........................................passed
Then I see exception "HO100310 (2)" in the exception list table...........passed
When I open the record for "Bass Barry"...................................passed
And I click the "Offences" tab............................................passed
And I view offence "1"....................................................passed
And I match the offence to PNC offence "1"................................passed
And I return to the offence list..........................................passed
And I view offence "2"....................................................passed
And I match the offence to PNC offence "2"................................passed
And I submit the record...................................................passed
Then the PNC updates the record...........................................passed]]></system-out>
</testcase>
<testcase classname="{714} HO100310 - normal case with one offence added in court" name="Resolving one pair of HO100310 exceptions with an offence added in court" time="3.8151914419999984">
<system-out><![CDATA[Given the data for this test is in the PNC................................passed
And "input-message" is received...........................................passed
Given I am logged in as "generalhandler"..................................passed
And I view the list of exceptions.........................................passed
Then I see exception "HO100310 (3)" in the exception list table...........passed
When I open the record for "Bass Barry"...................................passed
And I click the "Offences" tab............................................passed
And I view offence "1"....................................................passed
And I match the offence to PNC offence "1"................................passed
And I return to the offence list..........................................passed
And I view offence "2"....................................................passed
And I match the offence to PNC offence "2"................................passed
And I return to the offence list..........................................passed
And I view offence "3"....................................................passed
And I match the offence as Added In Court.................................passed
And I submit the record...................................................passed
Then the PNC updates the record...........................................passed]]></system-out>
</testcase>
</testsuite>`
Any ideas why and how to get it to work?