Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: simplecov-ruby/simplecov
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0a968219a16bc5b7015ca4d9b8add1b2253c455f
Choose a base ref
..
head repository: simplecov-ruby/simplecov
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6a4b520fa71aa63171446e5d2477da0d49752b00
Choose a head ref
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.md
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -605,8 +605,16 @@ Try [coverband](https://github.com/danmayer/coverband).

## Want to use Spring with SimpleCov?

See [Make Spring & SimpleCov play nice](http://www.stefanwrobel.com/make-spring-simplecov-play-nice)
*by [Stefan Wrobel](http://www.stefanwrobel.com)*
If you're using [Spring](https://github.com/rails/spring) to speed up test suite runs and want to run SimpleCov along with them, you'll find that it often misreports coverage with the default config due to some sort of eager loading issue. Don't despair!

Just create `config/spring.rb` and move your SimpleCov config into it. Here's a simple version of what the file should look like:

```ruby
if ENV['RAILS_ENV'] == 'test'
require 'simplecov'
SimpleCov.start
end
```

## Contributing