Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | # | ||||
3 | # Coverage report for windows builds | ||||
4 | # | ||||
5 | #First general build | ||||
6 | echo "Building the source" | ||||
7 | go build || exit $? | ||||
8 | |||||
9 | echo "Starting unit test coverage" | ||||
10 | go test . examples/... generated/... -coverprofile=cp.out | ||||
11 | |||||
12 | # Output HTML coverage report (to coverage.html) | ||||
13 | echo "Creating HTML coverage report (coverage.html)" | ||||
14 | go tool cover -html=cp.out | ||||
15 | |||||
16 | # Now show in default browser | ||||
17 | echo "Launching browser with results" |