File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ jobs:
121121 mkdir -p ctrf
122122 shopt -s globstar nullglob
123123 conv=0
124- strip='ElectronNET\.IntegrationTests\.Tests\.'
125124 for trx in test-results/**/*.trx; do
126125 os="$(basename "$(dirname "$trx")")"
127126 [[ "$os" == "test-results" ]] && os="unknown"
@@ -130,11 +129,9 @@ jobs:
130129 mkdir -p "$outdir"
131130 out="${outdir}/ctrf-report.json"
132131
133- # TRX → CTRF
134132 dotnet tool run DotnetCtrfJsonReporter -p "$trx" -d "$outdir" -f "ctrf-report.json"
135133
136- # Strip prefix from names; DO NOT touch suite; set filePath to OS
137- jq --arg os "$os" --arg strip "$strip" '.results |= map((.fullName? |= ((. // "") | sub($strip; ""))) | (.className? |= ((. // "") | sub($strip; ""))) | (.filePath = $os))' "$out" > "${out}.tmp" && mv "${out}.tmp" "$out"
134+ jq --arg os "$os" '.results |= map(.filePath = $os)' "$out" > "${out}.tmp" && mv "${out}.tmp" "$out"
138135
139136 echo "Converted & normalized $trx -> $out"
140137 conv=$((conv+1))
You can’t perform that action at this time.
0 commit comments