-
Notifications
You must be signed in to change notification settings - Fork 38
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
guard-test with simplecov doesn't report coverage #44
Comments
Hi,
Edit: Sorry, that was silly! :P Running Guard in debug mode |
That's because I don't want to include the actual test files in my coverage report. In any case I can remove that line with no effect. |
BTW, I'm on Windows. Here is the output from the -d:
I got it to work by eliminating the line which calls guard_test_runner:
|
Thanks! It seems that requiring |
Hi @jmthomas, Sorry for the delay! I've pushed a commit that might fix this issue. Could you try using the master branch from GitHub and let me know how it goes? Thanks! |
Hey @jmthomas! Have you had a chance to try my possible fix ( |
Can you confirm this is fixed (or not)? |
I'm unable to reproduce my previous environment. When I try to back port to guard 1.8.0 and guard-test 1.0.0 I get a error in guard.rb:114 'setup_listener' undefined method 'change'. I updated guard to the latest (2.2.2) and ran your new guard-test and it ran all my tests successfully but then just aborted back to the command prompt. It appears to have generated the coverage results so I guess it worked. Here is the output from -d:
|
Ok, awesome if it seems to work with latest Guard & guard-test! Regarding the fact that Guard exits and goes back to command prompt, that's weird. Unfortunately,I don't have a clue as to why it happens... |
I ran into the same behavior today (incomplete coverage when tests are run with guard). The problem was that guard requires minitest/autorun by default, which causes the coverage report to be finished early. |
I have several specs and several unit tests for a library I've developing. I have both guard-spec and guard-test installed and all my specs and tests run appropriately. However, I only get SimpleCov coverage data for my specs. It says it is generating coverage for Unit Tests but all I get is the method definitions as if it parsed the files but didn't run them.
When I run an individual test or my rake task that runs all the specs and test I get the coverage I expect.
My Guardfile:
My test_helper.rb
Using ruby v1.9.3p392, guard v1.8.0, guard-test v1.0.0, simplecov v0.7.1
The text was updated successfully, but these errors were encountered: