switched coverage to native go test

This commit is contained in:
Jarek Kowalski
2018-06-23 16:32:47 -07:00
parent 94965997e8
commit cbcdfa2eb6
3 changed files with 7 additions and 10 deletions

2
.gitignore vendored
View File

@@ -4,5 +4,5 @@
playground/
kopia-*.tar.gz
kopia-*.zip
combined.cov
*.cov
.vscode/

View File

@@ -90,4 +90,9 @@ godoc:
godoc -http=:33333
coverage:
./coverage.sh
test --coverprofile tmp.cov github.com/kopia/kopia/...
go tool cover -html=tmp.cov
coverage-repo:
go test --coverprofile tmp.cov github.com/kopia/kopia/block/... github.com/kopia/kopia/object/... github.com/kopia/kopia/repo/...
go tool cover -html=tmp.cov

View File

@@ -1,8 +0,0 @@
echo mode: set > combined.cov
for p in `go list github.com/kopia/kopia/...`; do
go test --coverprofile tmp.cov $p
grep -v "mode: " tmp.cov >> combined.cov
rm tmp.cov
done
go tool cover -html=combined.cov
rm combined.cov