-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
Add JUnit XML output #1748
Add JUnit XML output #1748
Conversation
@fflaten wanna review? |
Sure. Will look through it later today. |
Testsuitelement (container) is not showing skipped tests correctly. Returns
In what scenario is |
From issue:
This isn't addressed. Should it be? Currently returns stacktrace twice, see #1515 (comment) |
Co-authored-by: Frode Flaten <3436158+fflaten@users.noreply.github.com>
I saw that, and did not address it because I would have to fix the nunit output as well. At the moment I would like to avoid goldplating the functionality. IIRC it won't return stack trace twice, the display message contains the first line of the stack trace, but nothing more. Stacktrace then contains the whole stack trace. |
Good job. What about the missing "disabled" attribute in testsuite? |
PR Summary
Fix #1515
Adding JUnit option to XML export.
PR Checklist
PR has meaningful title
Summary describes changes
PR is ready to be merged
Create Pull Request
to mark it as a draft. PR can be markedReady for review
when it's ready.All tests pass
./build.ps1 -Clean; ./test.ps1 -NoBuild
. Use a new PowerShell process when C# code is changed.Tests are added/update (if required)
Documentation is updated/added (if required)
Add Export-JUnitReport function
Exercise the Export-JUnit report via Invoke-Pester with simple interface
Exercise the Export-JUnit report via Invoke-Pester with config interface
(maybe) Update parameter names (action and node -> block, testresult) to match nunit better <- I give up on this
Copy the path-switch from nunit to get path/name for scriptblocks
Use ExpandedPath where needed
Since it doesn't care about contexts (nested test-suite are not allowed), maybe use Fold-Block to simplify current testcases-lookup.
Add stack trace as inner text at failure-element