-
Notifications
You must be signed in to change notification settings - Fork 553
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
Parallel Cucumber and RSpec merge is overwriting earlier test #339
Comments
It appears your results are getting clobbered in the last two examples but not in the previous. What if you try something like bundle exec ruby -rsimplecov -S parallel_cucumber features && bundle exec ruby -rsimplecov -S parallel_rspec spec
# or better
bundle exec ruby -rsimplecov -S rake parallel:all |
The second half of the first statement is overwriting the first half, just as before. There is unfortunately no Anything else to try, please? |
Maybe try setting the command_name from each task and process.... In |
@bf4, I'm not quote sure where to put I have one more data point that might point to a solution. I created the following Rake file: task(:test).clear.enhance %w(rspec cucumber)
desc 'Calculate test coverage'
task coverage: :environment do
sh 'rspec && cucumber'
end
But when I do
What's surprising is that SimpleCov reports the correct merged results (97.89%) and then immediately overwrites them with the Cucumber-only results. But this only occurs when the Any other ideas to try? |
Hey guys, only read that last mail, so maybe I'm off, but here is my suggestion: Put that command name call into one arbitrarily picked spec file. That'll let simplecov know for rspec, and skip for cukes. In an ideal world I'd also suggest you just load rspec-expectantions itself in cucumber, and move any bootstrapping that happens in spec helper to some place that can be required by both. On 24. Oktober 2014 22:15:58 MESZ, Dan Kohn [email protected] wrote:
|
Thanks @bf4! Adding |
Closing as fixed |
I'm not able to merging my parallel RSpec and Cucumber tests. Merging non-parallel tests works fine. I do
rm -r tmp coverage
between each of the following:rspec spec
: 1885 / 2042 LOC (92.31%)cucumber
: 1698 / 1998 LOC (84.98%)rspec spec && cucumber
: 1999 / 2042 LOC (97.89%)cucumber && rspec spec
: 1999 / 2042 LOC (97.89%)parallel_rspec spec && parallel_cucumber features
: 1698 / 1998 LOC (84.98%)parallel_cucumber features && parallel_rspec spec
: 1885 / 2042 LOC (92.31%)I get the same effect when I run from Rake. Any suggestions?
My
.simplecov
has a 20 minute timeout:The text was updated successfully, but these errors were encountered: