Skip to content

OutputFile equivalent in pester 5 #1940

Answered by nohwnd
Agazoth asked this question in Q&A
May 12, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

How do you do that right now with Pester4? Asking to give you similar solution.

In Pester 5 there is configuration object where you can enable output in NUnit and JUnit format. You would then use it with Invoke-Pester -Configuration $c

C:\p\pester [rel/5.2.x ≡]> $c = New-PesterConfiguration
C:\p\pester [rel/5.2.x ≡]> $c.TestResult

Enabled        : Enable TestResult. (False, default: False)
OutputFormat   : Format to use for test result report. Possible values: NUnitXml, NUnit2.5 or JUnitXml (NUnitXml,
                 default: NUnitXml)
OutputPath     : Path relative to the current directory where test result report is saved. (testResults.xml, default:
                 testResults.xml)
O…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Agazoth
Comment options

@nohwnd
Comment options

@nohwnd
Comment options

@Agazoth
Comment options

Answer selected by nohwnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants