Skip to content

Wrong testcount when using subTest #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Flamefire opened this issue May 20, 2025 · 0 comments
Open

Wrong testcount when using subTest #292

Flamefire opened this issue May 20, 2025 · 0 comments

Comments

@Flamefire
Copy link

Related to #210

When using subTest the subtests will be counted in the "tests" attribute but no testcase element is generated so the numbers won't match.

Example for a single test with 1 out of 2 subtests failing:

<testsuites>
  <testsuite name="pytest" errors="0" failures="1" skipped="0" tests="2" [snip]>
    <testcase classname="MiscTests" name="test_pytree_tree_leaves" time="13.493" file="dynamo/test_misc.py">
      <failure message=" [snip]">[snip]</failure>
      <system-out>[snip]</system-out>
    </testcase>
  </testsuite>
</testsuites>

Is this (also) expected or could this be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant