forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renable code coverage collection in unit tests, including on Travis.
When code coverage is not being collected, just issue a single 'go test' command, as is already done. Go will internally parallize execution. When code coverage is being collected, it is necessary to issue separate 'go test' commands for each package, since Go does not support collecting coverage across packages. Using xargs -P will parallelize these invocations, however, speeding up test execution. The number of simultaneous processes to use can be specified with KUBE_COVERPROCS. Update Travis config to pass along the number of CPUs to use for running tests.
- Loading branch information
Showing
3 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters