forked from lucaslorentz/minicover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-sample.sh
executable file
·37 lines (35 loc) · 928 Bytes
/
build-sample.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
set -e
rm -rd ~/.nuget/packages/minicover/1.0.0 || true
dotnet pack -c Release --output $PWD/sample/nupkgs
cd sample
rm -rf ./coverage
dotnet build
dotnet tool restore -v q
dotnet minicover reset
echo "# Start Instrument"
dotnet minicover instrument
echo "# End Instrument"
dotnet test --no-build
echo "# Start Uninstrument"
dotnet minicover uninstrument
echo "# End Uninstrument"
echo "# Start Report"
dotnet minicover report --threshold 60
echo "# End Report"
echo "# Start HtmlReport"
dotnet minicover htmlreport --threshold 60
echo "# End HtmlReport"
echo "# Start XmlReport"
dotnet minicover xmlreport
echo "# End XmlReport"
echo "# Start OpenCoverReport"
dotnet minicover opencoverreport
echo "# End OpenCoverReport"
echo "# Start CloverReport"
dotnet minicover cloverreport
echo "# End CloverReport"
echo "# Start CoberturaReport"
dotnet minicover coberturareport
echo "# End CoberturaReport"
cd ..