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

Change testsuite name property in JUnit xml #78

Closed
venka66 opened this issue Apr 12, 2024 · 1 comment
Closed

Change testsuite name property in JUnit xml #78

venka66 opened this issue Apr 12, 2024 · 1 comment

Comments

@venka66
Copy link

venka66 commented Apr 12, 2024

I'm using dotnet test with the junit logger option to run my tests. The tests are compiled into a binary before they are run and the name of the binary is used as the testsuite name in the JUnit XML file, example - E2ETests.dll.

<testsuites>
<testsuite name="E2ETests.dll" tests="5" skipped="1" failures="2" errors="0" time="76.0077336" timestamp="2024-04-11T16:31:15" hostname="hostname" id="0" package="E2ETests.dll">

I would like to change the name of the testsuite in the XML file without modifying the binary. Is there an existing method or plan to allow changing the testsuite name that can be provided to dotnet test --logger option?

@codito
Copy link
Contributor

codito commented Jun 22, 2024

@venka66 we don't plan to add this support, please consider using a post processing task with Powershell or similar scripting for this.

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