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

Add coverage task #1422

Closed

Conversation

ethancrawford
Copy link
Collaborator

This adds the simplecov gem to vendors and a corresponding rake task to generate a coverage report.
To generate the report, assuming we're in the app/server/sonicpi directory, we just need to type rake coverage, and the html report output is generated into app/server/sonicpi/coverage.

This adds the simplecov gem to vendors and a corresponding rake task to generate a coverage report.
To generate the report, assuming we're in the app/server/sonicpi directory, we just need to type 'rake coverage', and the html report output is generated into app/server/sonicpi/coverage.
The tests were being run twice previously. The first time they run normally, but the second time the test framework appears to run again with zero tests. This wasn't really a huge problem when running just the tests, but prevented coverage from being generated as the second zero tests run would overwrite the coverage output.
This change prevents this.
@samaaron
Copy link
Collaborator

@ethancrawford do you have an example of a report produced by this on the Sonic Pi codebase?

@ethancrawford
Copy link
Collaborator Author

@samaaron - not a current one but I'll generate one asap.

@dmitrytrager
Copy link

Looks like stale

@ethancrawford ethancrawford changed the base branch from master to main June 12, 2020 11:48
@samaaron
Copy link
Collaborator

Apologies, we've now moved our default branch from master to main. Please consider creating a new pull request merging with main with these changes.

I am closing this not out of any lack of interest, but in order to ensure new code moves to our new default branch. Thanks!

@samaaron samaaron closed this Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants