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

Output Junit file doesn't have test name for a test case #7

Closed
RohitVegesna opened this issue Nov 9, 2021 · 4 comments
Closed

Output Junit file doesn't have test name for a test case #7

RohitVegesna opened this issue Nov 9, 2021 · 4 comments

Comments

@RohitVegesna
Copy link

Hey,
Thanks for developing this nice tool which helps in uploading test results in CircleCI.
We tried to use this package and upload test results in circleCI run but looks like we have no test case name shown both in ran pipeline and circleCI insights. When looking further into resulted JUnit file, found that there is a test case name printed which we have in the source file (xunit result).

Attaching our sample snipptes of both xunit_result.xml and junit_result.xml (which was generated using this nuget)
Snippet of Xunit_result.xml
image

Snippet of resulting file (junit)
image
In the above snippet, test case name is blank.

We are using 'XunitXml.TestLogger' nuget to generate the xunit result XML.
Could you please guide us on how to resolve this, without the test name in the JUnit file, circleCI shows blank rows under the test case name column.
Your response is highly appreciated !!

Thanks in advance.

@gabrielweyer
Copy link
Owner

Hey @RohitVegesna could you please attach the Xunit_result.xml file to this issue? It looks like it was created specifically to reproduce the issue you reported and so should no contain any sensitive data.

@RohitVegesna
Copy link
Author

Hey @gabrielweyer,
Thanks for getting back !!
I have now created a sample project and generated Xunit_result.xml and used xunit-to-junit nuget to convert to junit_result,XML.
Attaching both files in a single compressed file.
Xunit and Junit xmls.zip

Please let me know if you require any more info to troubleshoot the issue.

Thanks

@gabrielweyer
Copy link
Owner

I assume you provided a value to DisplayName?

[Fact(DisplayName = "Ignoring scenario")]

I published v3.0.0 on NuGet moments ago. Please let me know if it doesn't solve your issue.

@RohitVegesna
Copy link
Author

@gabrielweyer With the new version. I am able to see the name in the converted file.
Thanks for resolving it !!

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

2 participants