tests: fix test coverage reporting for parallel testing.

* Fix simplecov clobbering test coverage reports when using parallel tests.
* Generate coverage reports by default (remove $SIMPLECOV flag).
* Store coverage reports in tmp/coverage/ instead of coverage/.
* Enable branch coverage.

ref: github.com /colszowka/simplecov/issues/718#issuecomment-538201587
This commit is contained in:
evazion
2020-06-11 02:16:20 -05:00
parent 99a9149fc4
commit a829fbfb8d
3 changed files with 14 additions and 10 deletions

6
.simplecov Normal file
View File

@@ -0,0 +1,6 @@
SimpleCov.start "rails" do
add_group "Libraries", ["app/logical", "lib"]
add_group "Presenters", "app/presenters"
enable_coverage :branch
coverage_dir "tmp/coverage"
end