Skip to content

Commit

Permalink
📈 Include the framework in the coverage output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
JSkimming committed Jan 11, 2020
1 parent 8e5b8fb commit a5a7024
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ exe dotnet test --no-restore --no-build -f "$framework" -c "$config" \
--results-directory "$output/" \
--logger "\"trx;LogFileName=$(basename "$testProj1" .csproj).trx\"" \
--logger "\"Console;noprogress=true\"" \
/p:CollectCoverage=true \
/p:Include="$include" \
/p:Exclude="$exclude" \
/p:CoverletOutput="$output/internal.coverage.json"
-p:CollectCoverage=true \
-p:Include="$include" \
-p:Exclude="$exclude" \
-p:CoverletOutput="$output/internal.coverage.json"

exe dotnet test --no-restore --no-build -f "$framework" -c "$config" \
"$testProj2" \
--results-directory "$output/" \
--logger "\"trx;LogFileName=$(basename "$testProj2" .csproj).trx\"" \
--logger "\"Console;noprogress=true\"" \
/p:CollectCoverage=true \
/p:Include="$include" \
/p:Exclude="$exclude" \
/p:MergeWith="$output/internal.coverage.json" \
/p:CoverletOutput="$output/" \
/p:CoverletOutputFormat="\"json,opencover,cobertura\""
-p:CollectCoverage=true \
-p:Include="$include" \
-p:Exclude="$exclude" \
-p:MergeWith="$output/internal.coverage.$framework.json" \
-p:CoverletOutput="$output/" \
-p:CoverletOutputFormat="\"json,opencover,cobertura\""

# Install trx2junit if not already installed
if [ ! -f "$tools/trx2junit" ]
Expand All @@ -69,6 +69,6 @@ exe "$tools/trx2junit" "$output"/*.trx
# Generate the reports
exe "$tools/reportgenerator" \
"-verbosity:Info" \
"-reports:$output/coverage.opencover.xml" \
"-reports:$output/coverage.$framework.opencover.xml" \
"-targetdir:$output/Report" \
"-reporttypes:Html"

0 comments on commit a5a7024

Please sign in to comment.