ctrf-io / junit-to-ctrf

Convert JUnit reports to CTRF
MIT License
0 stars 1 forks source link

Error: Cannot read properties of undefined (reading 'testsuite') #3

Open lorenooliveira opened 1 week ago

lorenooliveira commented 1 week ago

I was giving junit-to-ctrf a try but seems like it cannot parse the test report.

TLDR:

$ npx junit-to-ctrf TEST-com.example.demo.DemoApplicationTests.xml -o test.json

Reading JUnit report file: TEST-com.example.demo.DemoApplicationTests.xml
Error: Cannot read properties of undefined (reading 'testsuite')

Steps to reproduce:

  1. Create the simplest possible project in https://start.spring.io/
    • Maven project
    • Java language
    • All defaults to Project Metadata
    • War packaging
    • Java 21
  2. Unzip project locally
  3. mvn clean test
  4. cd target/surefire-reports
  5. npx junit-to-ctrf TEST-com.example.demo.DemoApplicationTests.xml -o test.json

Notable environment details:

Ma11hewThomas commented 1 week ago

I think this might be a surefire report? @sahilwingify is building a surefire-to-ctrf converter which should be available soon

lorenooliveira commented 1 week ago

Good to know. I'm monitoring the other discussion.

Just out of curiosity, if not surefire's/failsafe's test reports, what is the junit test report expected by this package?