-
Notifications
You must be signed in to change notification settings - Fork 240
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Load time inaccurate #268
Comments
Are you sure you're using guard-rspec = 4.2.9? Do you have any overrides or special guard-rspec options in your Guardfile? (Basically, that message is from Rspec, which sets the load time in Reporter.initialize, while guard-rspec just runs RSpec with a custom formatter in the command line). |
Yes, I'm using 4.2.9 and also use --color and require the rails spec_helper. I did a little more testing. After ripping out spring, this problem no longer occurs. This is happening because spring is forking the environment after the rspec Reporter has loaded. Fixing this problem in guard-rspec seems somewhat inappropriate, as it would require monkeypatching that would easily break as rspec changes. That said, maybe we can figure out what the right solution is and suggest changes in those projects. Ideas? |
@nilbus Are you using |
@nilbus Maybe you'd better report the issue to |
I'd say this is an issue in Rspec, not because the metric isn't correct (it actually is - no matter how you look at it), but because currently the metric simply doesn't make sense with spring. So I would report it as a RSpec bug, because if the value doesn't make sense in some cases, it either shouldn't be shown, or should say what makes sense. (The idea of that metric has to be revisited). If it bothers you, you could just use a custom formatter that doesn't show the info - and that is something you could do with a patch in guard-rspec, although it only hides the problem. |
Just for reference spring-commands-rspec is where the issued landed: jonleighton/spring-commands-rspec#18 |
@zorab47 Ok, thanks! |
Using RSpec 3.0.0, I see the following when using guard-rspec:
Really what happened was I started guard 688 minutes ago. Please see what you can do to cause this metric to reset on each guard run.
The text was updated successfully, but these errors were encountered: