Skip to content
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

Invalid time in JUnit XML reports for ignored tests #1413

Open
kostrse opened this issue Sep 22, 2018 · 0 comments
Open

Invalid time in JUnit XML reports for ignored tests #1413

kostrse opened this issue Sep 22, 2018 · 0 comments

Comments

@kostrse
Copy link

kostrse commented Sep 22, 2018

If test is ignored:

ignore should "foo bar" in {
  ???
}

then generated XML report has -0.001 time value:

<testcase classname="com.foo.bar" name="Foo bar should foo bar" time="-0.001">
  <skipped/>
</testcase>

In my experience, it breaks Azure Pipelines (VSTS Build) unit tests UI, but potentially may confuse any tool attempting to parse the test execution time.

@kostrse kostrse changed the title Invalid time in JUnit XML reports have for ignored tests Invalid time in JUnit XML reports for ignored tests Sep 22, 2018
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