Replies: 1 comment 5 replies
-
Thanks for feedback! Something similar is suggested in #2039 . Would #2039 (comment) work for you? The JUnit schema doesn't have a similar element, however output will be available in the future NUnit3 support. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using Pester to do simple tests of our complex software product accessed using a API. Sometimes getting the failed is not enough to have any idea what happened and why. NUnit allows attaching files to the test result, which for example would allow attaching log files. Would allow attaching the result that was not expected and so one. The feature is extremely handy to use and helpful, as you have a the diagnostic data where they belong: at the failed test.
NUnit XML Format: https://docs.nunit.org/articles/nunit/technical-notes/usage/Test-Result-XML-Format.html#attachments
NUnit API: https://docs.nunit.org/articles/nunit/writing-tests/TestContext.html#addtestattachment-37
Not exactly the same, but related: In NUnit it is also possible to add just additional logging. I also don't see anything like this in Pester: https://docs.nunit.org/articles/nunit/writing-tests/TestContext.html#writeline
In Pester its only possible to set the test result explicit using Set-ItResult but I think that could be a good starting point for something like Add-ItFileAttachment ?
Beta Was this translation helpful? Give feedback.
All reactions