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