forked from simplecov-ruby/simplecov
/
minitest_basic.feature
35 lines (29 loc) · 1.11 KB
/
minitest_basic.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Feature:
Scenario:
Given SimpleCov for Minitest is configured with:
"""
require 'simplecov'
SimpleCov.start
"""
When I open the coverage report generated with `bundle exec rake minitest`
Then I should see the groups:
| name | coverage | files |
| All Files | 85.71% | 3 |
And I should see the source files:
| name | coverage |
| lib/faked_project/some_class.rb | 80.0 % |
| minitest/some_test.rb | 100.0 % |
| minitest/test_helper.rb | 75.0 % |
Scenario:
Given SimpleCov for Minitest is configured with:
"""
require 'simplecov'
SimpleCov.start
"""
When I open the coverage report generated with `bundle exec ruby -Ilib:minitest minitest/other_test.rb`
Then I should see the groups:
| name | coverage | files |
| All Files | 80.0% | 1 |
And I should see the source files:
| name | coverage |
| lib/faked_project/some_class.rb | 80.0 % |