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

Simplecov (0.4.2) with parallel_tests (0.4.13) #61

Closed
gummybears opened this issue Jul 18, 2011 · 3 comments
Closed

Simplecov (0.4.2) with parallel_tests (0.4.13) #61

gummybears opened this issue Jul 18, 2011 · 3 comments
Labels

Comments

@gummybears
Copy link

Hi,

Running simplecov along with parallel_tests. Added the following SimpleCov block in both spec/spec_helper.rb
and features/support/env.rb

SimpleCov.start 'rails' do
merge_timeout 7200
add_filter "/vendor/"
end

Coverage results are overwritten which I understand as each Rspec or cucumber test generates
a coverage report.

Is it possible to run simplecov with parallel_tests and merge the coverage of each of
them ?

@colszowka
Copy link
Collaborator

You can get rid of overwriting individual test suites by supplying a "command_name" config option. If you did SimpleCov.command_name "RSpec #{rand(100000)}" for example, all RSpec results would end up being merged together.

This will eventually lead to multiplied line hits reported (when the same test runs twice and hits the same line twice each time, 4 hits will be reported even though it's actually only 2), but that should not really mess up the quality of the reports otherwise.

Could you please try this out and report back as to whether this makes it work with PT?

@gummybears
Copy link
Author

I did try this out and can say it works with PT.
Thanks

@colszowka
Copy link
Collaborator

Awesome! Added a new feature issue (#64) to add this into the library. Thanks for reporting back!

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

2 participants