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

Report coverage only on default task #1322

Merged
merged 3 commits into from
May 6, 2015

Conversation

eugenk
Copy link
Member

@eugenk eugenk commented Apr 15, 2015

A simple run of rspec spec/something_spec.rb:123 spends a lot of time on
generating the coverage report.

This disables the coverage report, except for the default rake task.
If a coverage report is desired even for other tasks, just set the environment variable COVERAGE, e.g.:

COVERAGE=true rspec

@0robustus1 0robustus1 self-assigned this May 4, 2015
@eugenk eugenk force-pushed the report_coverage_only_on_default_task branch from ae29ca5 to 0d14646 Compare May 5, 2015 10:17
@@ -34,6 +34,7 @@ def gemsets
end

def use_simplecov
return unless ENV['COVERAGE']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the caller of use_simplecov decide whether simplecov is supposed to be used? If not, we should rename the method.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right.

@0robustus1
Copy link
Contributor

Please rebase staging.

eugenk added 3 commits May 6, 2015 11:46
A simple run of `rspec spec/something_spec.rb:123` spends a lot of time on
generating the coverage report.

This disables the coverage report by default, except for the default rake task.
@eugenk eugenk force-pushed the report_coverage_only_on_default_task branch from 0d14646 to e937ecc Compare May 6, 2015 09:49
@eugenk
Copy link
Member Author

eugenk commented May 6, 2015

Done.

@0robustus1
Copy link
Contributor

👍

eugenk added a commit that referenced this pull request May 6, 2015
…_task

Report coverage only on default task
@eugenk eugenk merged commit 08f1cbe into staging May 6, 2015
@eugenk eugenk deleted the report_coverage_only_on_default_task branch May 6, 2015 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants