mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 11:14:30 +08:00
feat(ci): 添加CTRF报告生成和调试步骤
- 创建ctrf输出目录 - 使用DotnetCtrfJsonReporter工具生成CTRF格式测试报告 - 添加调试步骤验证CTRF文件生成 - 配置工具参数以正确处理TRX文件并输出JSON报告
This commit is contained in:
parent
c61f19126a
commit
9a158d6c7e
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -66,8 +66,19 @@ jobs:
|
||||
--no-build \
|
||||
--logger trx \
|
||||
--results-directory TestResults
|
||||
dotnet tool run DotnetCtrfJsonReporter -t "TestResults/testResults.trx"
|
||||
|
||||
# 创建输出目录
|
||||
mkdir -p ctrf
|
||||
|
||||
# 生成 CTRF 报告 (根据工具文档调整参数)
|
||||
dotnet tool run DotnetCtrfJsonReporter \
|
||||
--trx-file-path "TestResults/*.trx" \
|
||||
--output-file "ctrf/report.json"
|
||||
- name: Debug - Verify CTRF files
|
||||
if: always()
|
||||
run: |
|
||||
echo "Checking for CTRF files..."
|
||||
find . -name "*.json" -path "*/ctrf/*" -ls
|
||||
ls -la ctrf/ 2>/dev/null || echo "No ctrf directory found"
|
||||
# 生成并发布测试报告,无论测试成功或失败都会执行
|
||||
- name: Test Report
|
||||
uses: dorny/test-reporter@v2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user