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

Name of test suite is duplicated in name of test case in the XML reports #158

Open
hakanai opened this issue Mar 8, 2016 · 0 comments
Open

Comments

@hakanai
Copy link

hakanai commented Mar 8, 2016

The XML output currently puts the groups/contexts into the <testsuite> element. Problem is, it also puts the same text into the <testcase> element, like this:

<testsuite name="Legacy test for loading something" tests="1" time="80.267" failures="0" errors="1" skipped="0" timestamp="2016-03-08T21:24:43+11:00">
  <testcase name="Legacy test for loading something passes the monolithic test" time="0.02">
  ...

Problem is, in Jenkins, when it displays the failure report, it ends up looking like this:

 Legacy test for loading something.Legacy test for loading something passes the monolithic test

So for particularly long test names (possible if you have deeply nested contexts), a lot of text is duplicated in the report.

It seems like it should just be:

  <testcase name="passes the monolithic test" time="0.02">
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