mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
fix(ci): 修复CTRF报告生成脚本中的输出路径配置
- 为每个TRX文件指定正确的JSON输出路径 - 使用basename提取文件名并构建输出路径 - 添加目录创建确保输出目录存在 - 改进处理消息显示源和目标文件名 - 确保所有TRX文件都能正确转换为JSON格式
This commit is contained in:
parent
c01ab04292
commit
fe9f610c93
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -87,10 +87,17 @@ jobs:
|
||||
- name: Generate CTRF report
|
||||
run: |
|
||||
mkdir -p ctrf
|
||||
|
||||
for trx in TestResults/*.trx; do
|
||||
echo "Processing $trx"
|
||||
dotnet tool run DotnetCtrfJsonReporter -p "$trx" -t nunit
|
||||
name=$(basename "$trx" .trx)
|
||||
echo "Processing $trx -> ctrf/$name.json"
|
||||
|
||||
dotnet tool run DotnetCtrfJsonReporter \
|
||||
-p "$trx" \
|
||||
-t nunit \
|
||||
-o "ctrf/$name.json"
|
||||
done
|
||||
|
||||
# 生成并发布测试报告,无论测试成功或失败都会执行
|
||||
- name: Test Report
|
||||
uses: dorny/test-reporter@v2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user