Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate test coverage statistics during Travis runs #80

Closed
minusnine opened this issue Jun 2, 2017 · 1 comment
Closed

Generate test coverage statistics during Travis runs #80

minusnine opened this issue Jun 2, 2017 · 1 comment
Labels

Comments

@minusnine
Copy link
Collaborator

We should generate test coverage statistics during Travis runs. This can be accomplished by:

  1. Changing travis-ci-test.sh to:
    a. Add --coverprofile=coverage.go to the go test invocation.
    b. Add a call to go tool cover -html coverage.out -o coverage.html.
  2. Configuring the artifact to be uploaded at the end of the test.

2 requires use to configure an Amazon S3 bucket. The files should be configured to expire after a couple of days (maybe 30?), since Travis runs for a branch on each push and daily.

@minusnine
Copy link
Collaborator Author

Instead of uploading to a bucket directly, maybe use Codecov:

https://codecov.io/
https://github.com/codecov/example-go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant