coverage: updated 'go test' command to include all packages

previously the coverage for each package only included lines covered by tests in the same package,
excluding end-to-end tests
now, we get very different coverage numbers...
This commit is contained in:
Jarek Kowalski committed 2018-10-20 09:20:08 -07:00
1 parent f43eae0493
commit bcbab79dd0
6 files changed
+11 -4

No files matched your search

+2 -2
View File
@@ -72,9 +72,9 @@ godoc:
godoc -http=:33333
coverage:
go test --coverprofile tmp.cov github.com/kopia/kopia/...
go test --coverprofile tmp.cov --coverpkg github.com/kopia/kopia/... github.com/kopia/kopia/...
go tool cover -html=tmp.cov
coverage-repo:
go test --coverprofile tmp.cov github.com/kopia/kopia/repo/...
go test --coverprofile tmp.cov --coverpkg github.com/kopia/kopia/repo/... github.com/kopia/kopia/repo/...
go tool cover -html=tmp.cov
@@ -0,0 +1,3 @@
package repositorystress
// dummy package
@@ -1,4 +1,4 @@
package block_manager_stress_test
package repositorystress_test
import (
"context"
+3
View File
@@ -0,0 +1,3 @@
package stress
// dummy package
+1
View File
@@ -0,0 +1 @@
package endtoend
+1 -1
View File
@@ -1,4 +1,4 @@
package tests
package endtoend_test
import (
"encoding/hex"