Skip to content

[BUG] Test results are empty #126

@remcohaszing

Description

@remcohaszing

Describe the bug
I managed to upload a junit report. However, the Codecov UI says no test results are found.

To Reproduce
Steps to reproduce the behavior:

  1. Run Node.js tests with node --test --enable-source-maps --test-reporter junit --test-reporter-destination junit.xml --test-reporter spec
  2. Upload the coverage report with codecov/test-results-action@v1.
  3. Open the test results on Codecov

Expected behavior
Test results show up

Regression
This is the first time I tried it.

Screenshots

Product Area
test analytics

Versions

  • OS: Linux
  • Git Host: GitHub
  • CI/CD: GitHub Actions
  • Uploader: codecov/test-results-action@v1

Commit and CI link

Additional context

This is the generated junit.xml:

<?xml version="1.0" encoding="utf-8"?>
<testsuites>
	<testcase name="anchor" time="0.145976" classname="test"/>
	<testcase name="custom-parser" time="0.011969" classname="test"/>
	<testcase name="default" time="0.016337" classname="test"/>
	<testcase name="default-value" time="0.011813" classname="test"/>
	<testcase name="named" time="0.012529" classname="test"/>
	<testcase name="null" time="0.008820" classname="test"/>
	<testcase name="toml" time="0.012111" classname="test"/>
	<testcase name="toml-with-content" time="0.016580" classname="test"/>
	<testcase name="undefined-named" time="0.008320" classname="test"/>
	<!-- tests 9 -->
	<!-- suites 0 -->
	<!-- pass 9 -->
	<!-- fail 0 -->
	<!-- cancelled 0 -->
	<!-- skipped 0 -->
	<!-- todo 0 -->
	<!-- duration_ms 579.998336 -->
</testsuites>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions