Skip to content

Wrong testcount when using subTest #292

@Flamefire

Description

@Flamefire

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions