15 Commits

Author SHA1 Message Date
Mike McQuaid
82fc9506ad
simplecov: enable for subprocesses.
Follow instructions in:
https://github.com/simplecov-ruby/simplecov#running-simplecov-against-subprocesses
2020-08-18 15:58:46 +01:00
Mike McQuaid
170b38892a
Use CodeCov for coverage reporting. 2020-07-02 10:22:54 +01:00
Mike McQuaid
afec4e2988 Tweak code coverage logic
- make OS detection looser to exclude more Linux files on macOS (and
  vice versa)
- Allow slight (0.5%) coverage drops to account for somewhat random
  fluctuations.
2018-07-26 10:09:02 +01:00
Markus Reiter
c7549f476a Refactor .simplecov. 2018-06-13 07:17:30 +02:00
Mike McQuaid
301bb1d5dd .simplecov: filter more filters/folders.
This is stuff that can never be exercised by our test suite but is
exercised by `brew test-bot` so remove it from the coverage checks.
2017-12-08 16:44:33 +00:00
Markus Reiter
69e2be832c Fix comment location. 2017-10-08 14:14:24 +02:00
Markus Reiter
bae08d5188 Don’t track files in test and vendor. 2017-10-08 01:47:12 +02:00
Markus Reiter
4944d43d58 Move coverage reporting into brew tests. 2017-03-05 23:08:14 +01:00
Markus Reiter
a536139e28 Remove dev-cmd/tests.rb from test coverage. 2017-03-05 18:56:32 +01:00
Bob W. Hogg
e622116f27 .simplecov: require English with capital E
On case-sensitive filesystems, require "english" will fail with "cannot load such file -- english"
2017-02-18 14:35:02 -08:00
Markus Reiter
c8492c2c44 RuboCop: Style/SpecialGlobalVars 2016-09-25 19:55:34 +02:00
Alyssa Ross
5f6a8d407a tests: speed up integration tests coverage
Previously, .simplecov called `SimpleCov.result` to store the coverage
result, and ignored the return value. `SimpleCov.result`'s return can be
slow to calculate, which wastes a lot of time when it's ignored.

This commit extracts the code needed to store the SimpleCov result from
`SimpleCov.result`, and calls it directly, without doing the busywork to
compute the return value every time.

In my testing, this more than halves the time taken to run all the
integration tests.
2016-09-23 10:40:08 +01:00
Markus Reiter
6b85593895 Fix coverage reporting. 2016-09-23 09:17:55 +02:00
Alyssa Ross
b3a85aaf34 test, cask-tests: update simplecov paths 2016-09-21 22:58:35 +01:00
Alyssa Ross
9033af6bda tests, cask-tests: (maybe) fix coverage 2016-09-20 17:02:35 +00:00