simplecov 0.18.5 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +93 -520
- data/README.md +131 -36
- data/doc/alternate-formatters.md +12 -2
- data/doc/commercial-services.md +5 -0
- data/lib/minitest/simplecov_plugin.rb +1 -1
- data/lib/simplecov/configuration.rb +110 -16
- data/lib/simplecov/default_formatter.rb +20 -0
- data/lib/simplecov/defaults.rb +11 -8
- data/lib/simplecov/exit_codes/exit_code_handling.rb +29 -0
- data/lib/simplecov/exit_codes/maximum_coverage_drop_check.rb +83 -0
- data/lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb +54 -0
- data/lib/simplecov/exit_codes/minimum_overall_coverage_check.rb +53 -0
- data/lib/simplecov/exit_codes.rb +5 -0
- data/lib/simplecov/file_list.rb +12 -6
- data/lib/simplecov/filter.rb +7 -5
- data/lib/simplecov/formatter/multi_formatter.rb +5 -7
- data/lib/simplecov/formatter.rb +2 -2
- data/lib/simplecov/lines_classifier.rb +3 -3
- data/lib/simplecov/no_defaults.rb +1 -1
- data/lib/simplecov/process.rb +19 -0
- data/lib/simplecov/result.rb +8 -35
- data/lib/simplecov/result_merger.rb +121 -57
- data/lib/simplecov/source_file/line.rb +1 -1
- data/lib/simplecov/source_file.rb +9 -3
- data/lib/simplecov/useless_results_remover.rb +5 -3
- data/lib/simplecov/version.rb +1 -1
- data/lib/simplecov.rb +130 -139
- metadata +34 -15
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -51
- data/ISSUE_TEMPLATE.md +0 -23
data/CONTRIBUTING.md
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
## Reporting Issues
|
2
|
-
|
3
|
-
You can report issues at https://github.com/colszowka/simplecov/issues
|
4
|
-
|
5
|
-
Before you go ahead please search existing issues for your problem, chances are someone else already reported it.
|
6
|
-
|
7
|
-
To make sure that we can help you quickly please include and check the following information:
|
8
|
-
|
9
|
-
* Include how you run your tests and which testing framework or frameworks you are running.
|
10
|
-
- please ensure you are requiring and starting SimpleCov before requiring any application code.
|
11
|
-
- If running via rake, please ensure you are requiring SimpleCov at the top of your Rakefile
|
12
|
-
For example, if running via RSpec, this would be at the top of your spec_helper.
|
13
|
-
- Have you tried using a [`.simplecov` file](https://github.com/colszowka/simplecov#using-simplecov-for-centralized-config)?
|
14
|
-
* Include the SimpleCov version you are running in your report.
|
15
|
-
* If you are not running the latest version (please check), and you cannot update it,
|
16
|
-
please specify in your report why you can't update to the latest version.
|
17
|
-
* Include your `ruby -e "puts RUBY_DESCRIPTION"`.
|
18
|
-
* Please also specify the gem versions of Rails (if applicable).
|
19
|
-
* Include any other coverage gems you may be using and their versions.
|
20
|
-
|
21
|
-
Include as much sample code as you can to help us reproduce the issue. (Inline, repo link, or gist, are fine. A failing test would help the most.)
|
22
|
-
|
23
|
-
This is extremely important for narrowing down the cause of your problem.
|
24
|
-
|
25
|
-
Thanks!
|
26
|
-
|
27
|
-
## Making Contributions
|
28
|
-
|
29
|
-
To fetch & test the library for development, do:
|
30
|
-
|
31
|
-
$ git clone https://github.com/colszowka/simplecov.git
|
32
|
-
$ cd simplecov
|
33
|
-
$ bundle
|
34
|
-
$ bundle exec rake
|
35
|
-
|
36
|
-
If you want to contribute, please:
|
37
|
-
|
38
|
-
* Fork the project.
|
39
|
-
* Make your feature addition or bug fix.
|
40
|
-
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
41
|
-
* **Bonus Points** go out to anyone who also updates `CHANGELOG.md` :)
|
42
|
-
* Send me a pull request on GitHub.
|
43
|
-
|
44
|
-
## Running Individual Tests
|
45
|
-
|
46
|
-
This project uses RSpec and Cucumber. Individual tests can be run like this:
|
47
|
-
|
48
|
-
```bash
|
49
|
-
bundle exec rspec path/to/test.rb
|
50
|
-
bundle exec cucumber path/to/test.feature
|
51
|
-
```
|
data/ISSUE_TEMPLATE.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
Howdy! Thanks for reporting an issue <3
|
2
|
-
|
3
|
-
Before you go ahead please search existing issues for your problem, chances are someone else already reported it.
|
4
|
-
|
5
|
-
To make sure that we can help you quickly please include and check the following information:
|
6
|
-
|
7
|
-
* Include how you run your tests and which testing framework or frameworks you are running.
|
8
|
-
- please ensure you are requiring and starting SimpleCov before requiring any application code.
|
9
|
-
- If running via rake, please ensure you are requiring SimpleCov at the top of your Rakefile
|
10
|
-
For example, if running via RSpec, this would be at the top of your spec_helper.
|
11
|
-
- Have you tried using a [`.simplecov` file](https://github.com/colszowka/simplecov#using-simplecov-for-centralized-config)?
|
12
|
-
* Include the SimpleCov version you are running in your report.
|
13
|
-
* If you are not running the latest version (please check), and you cannot update it,
|
14
|
-
please specify in your report why you can't update to the latest version.
|
15
|
-
* Include your `ruby -e "puts RUBY_DESCRIPTION"`.
|
16
|
-
* Please also specify the gem versions of Rails (if applicable).
|
17
|
-
* Include any other coverage gems you may be using and their versions.
|
18
|
-
|
19
|
-
Include as much sample code as you can to help us reproduce the issue. (Inline, repo link, or gist, are fine. A failing test would help the most.)
|
20
|
-
|
21
|
-
This is extremely important for narrowing down the cause of your problem.
|
22
|
-
|
23
|
-
Thanks!
|