Run coverage on all packages
@@ -37,7 +37,17 @@ before_install:
script:
# Run the unit tests first
- - go test ./ast -race -coverprofile=coverage.txt -covermode=atomic
+ - |
+ set -e
+ echo "" > coverage.txt
+
+ for d in $(go list ./... | grep -v vendor); do
+ go test -race -coverprofile=profile.out -covermode=atomic $d
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
+ done
# Now run the integration tests.
- |
