-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
Setup simplecov #2777
Setup simplecov #2777
Conversation
This enables code coverage analysis when running specs in your dev environment. Simply run them as usual and you'll see a line like the following at the end of the output: Coverage report generated for RSpec to /home/pau/dev/openfoodnetwork/coverage Simply browse to coverage/index.html and the results in a web UI. This is a useful tool that helps you decide if the tests you added are enough or not.
0f74615
to
16badcd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
any plugin to make rspec actually run? (instead of crawling I mean 😢)
What do you mean? To get these screenshots I just did |
it was a joke, I meant: is there a plugin to make rspec itself faster? I think it is rather slow... |
What's slow is booting Rails and using ActiveRecord. You should use zeus which is stated somewhere in the docs. It is critical for my TDD cycles. |
OMG, I missed that one (it's not on macos sieera setup guide). I need to install that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome, @sauloperez! 🙂
It'd be great to share our setups. I'm sure there are lots of tips we're missing from each other.
It should be in all! |
Deep-cover may be also a nice addition to this project. I usually use both Simplecov and DeepCover, I think it's worth consideration. So far I am happy with that setup for my own usage and DeepCover makes difference. |
Interesting @Tengoot! |
@sauloperez #dotheadminplease |
What? Why?
This enables code coverage analysis when running specs in your dev
environment. Simply run them as usual and you'll see a line like the
following at the end of the output:
Simply browse to coverage/index.html and the results in a web UI.
This is a useful tool that helps you decide if the tests you added are
enough or not.
Screenshots
What should we test?
Nothing. This is for development only.
Release notes
Add SimpleCov to enable code coverage analysis.
Changelog Category: Added