-
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
Merging doesn't work with test-unit #45
Comments
For some reason, it seems like ARGV is not passed to SimpleCov::CommandGuesser when using "test-unit 2.3.0" |
Ok, I figured it out : for some weird reason, the "unit-test" gem alters ARGV ! |
Oh, ok. Haven't tried test-unit 2+ yet, but if it's the way you're saying that it messes with ARGV, that seems like a pretty bad practice to me :/ It'd be great if you could swing up a little part about test/unit 2 including your workaround as a code example for the README and phase out a pull request. Thanks! |
Actually reopening this as a reminder to add something about this into the README |
I am also having this problem |
I got this issue and I spent a couple of hours trying to figure out what was going on... are my tests not running? no, they are running, is there some old coverage data somewhere else? Until I concluded the merging wasn't working, and then upon inspecting the .yml file, realizing results were not separated by test suit. Yeah, documenting this issue seems important, and fixing it if possible too so that it doesn't happen. |
I am having this issue as well. If I view the HTML file after the unit tests part, the results are different then at the end, after the functionals. Using: $ rake test Gemfile: I see the fix is: "to call SimpleCov.command_name (w/o any parameter) right after SimpleCov.start" But I am still seeing the same symptom. How can I put the results of both units and functionals in one report? Is it possible to create a rake task that would do it? Also, I am running test-unit 1.2.3, so I don't know if this is an issue with just test-unit 2? Otherwise, seems to work great. Thank you! |
Still seeing this issue with 0.5.0. When using Updated to rake 0.9.2. OK, after working on this for 12 hours, I have narrowed it down to 2 or 3 gems. However, these gems do not always cause the problem and the problem does not disappear unless all 3 are removed: How can you save the results from a test suite with a given name, and manually merge the results of 2 test suites? |
Same problem with As Ecco said, it is the A fix for
I let it here just in case it is helpful for someone, I'll try to comunicate with the |
Thanks @fguillen for the tip. Sent a pull request to the test-unit people (test-unit/test-unit#12). |
Obviously the test-unit guys merged this into Test/Unit, I suspect by release date that v2.4.3+ should have this resolved. Please re-open if there is still trouble. Thanks a lot for taking care of this guys! |
This problem still exists w/ test-unit 2.4.5 and simplecov 0.5.4. |
yeah, still broken.. The workaround is to add the following line to one of your functional test files SimpleCov.command_name 'test:functionals' if ENV['COVERAGE'] and this line to one of the units SimpleCov.command_name 'test:units' if ENV['COVERAGE'] Leave off the if ENV['COVERAGE'] if you're not using that variable. |
Closing as stale. Please reopen if this is still an issue. (And take a look at #340 ) |
Rails 3 application. Simple tests (no rspec, no cucumber).
If I add this to my gemfile :
require 'test-unit', '2.3.0'
then merging doesn't work as unit, functional, and integration test results overwrite each-other.
Thing is, I need this for the performance tests to work.
The text was updated successfully, but these errors were encountered: