mirror of
https://github.com/kopia/kopia.git
synced 2026-10-24 23:28:47 -04:00
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:
1 parent
f43eae0493
commit
bcbab79dd0
6 files changed
+11
-4
No files matched your search
@@ -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"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package stress
|
||||
|
||||
// dummy package
|
||||
@@ -0,0 +1 @@
|
||||
package endtoend
|
||||
@@ -1,4 +1,4 @@
|
||||
package tests
|
||||
package endtoend_test
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
|
||||
Reference in new issue
Block a user