Skip to content

Commit ee26d76

Browse files
committed
ci(workflow): 更新测试结果输出格式为NUnit3
将Pester测试的输出格式从NUnitXml更新为NUnit3,并相应调整GitHub Actions中的报告解析器为dotnet-nunit以保持兼容性。
1 parent 11157a1 commit ee26d76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
with:
3030
name: Pester Tests (${{ matrix.os }})
3131
path: testResults.xml
32-
reporter: java-junit # Pester 的 NUnit3/NUnitXml 输出通常兼容 JUnit 解析器
32+
reporter: dotnet-nunit

PesterConfiguration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $config = @{
8080
TestResult = @{
8181
Enabled = $true
8282
OutputPath = "testResults.xml"
83-
OutputFormat = 'NUnitXml'
83+
OutputFormat = 'NUnit3'
8484
TestSuiteName = "PsUtils.Tests" ## 可选:给你的测试套件起个名字
8585
}
8686

0 commit comments

Comments
 (0)