Skip to content

Commit

Permalink
generate xml results for pester tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dfinke authored May 9, 2022
1 parent de0f69b commit f6fbb1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ jobs:

- name: Run the scripts
shell: pwsh
run: ./ContinuousIntegration.ps1
run: ./ContinuousIntegration.ps1

- name: Commit and push
uses: stefanzweifel/[email protected]
with:
commit_message: Check in results
commit_user_name: "Pester check in"
3 changes: 3 additions & 0 deletions ContinuousIntegration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ foreach ($module in $modules) {

$pesterResults = Invoke-Pester -Output Detailed -PassThru

$os = $PSVersionTable.Platform
$pesterResults | Export-NUnitReport -Path "./pesterTestResults-$os.xml"

if (!$pesterResults) {
Throw "Tests failed"
}
Expand Down

0 comments on commit f6fbb1a

Please sign in to comment.