-
Notifications
You must be signed in to change notification settings - Fork 551
/
config_deactivate_merging.feature
44 lines (36 loc) · 1.33 KB
/
config_deactivate_merging.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
36
37
38
39
40
41
42
43
44
@test_unit @rspec @merging @config
Feature:
If merging of test suite results is not desired, it can be deactivated,
thus leading to the coverage report being overwritten with the latest results
of a single test suite on each run of any suite.
It's probably preferrable to generate the individual suite results into separate
output directories instead (see SimpleCov.coverage_dir), but it is possible :)
Background:
Given I'm working on the project "faked_project"
Scenario:
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
SimpleCov.start do
use_merging false
end
"""
Given SimpleCov for RSpec is configured with:
"""
require 'simplecov'
SimpleCov.start do
use_merging false
end
"""
When I successfully run `bundle exec rake test`
Then a file named "coverage/index.html" should exist
But a file named "coverage/.resultset.json" should not exist
Given I open the coverage report
Then the report should be based upon:
| Unit Tests |
When I successfully run `bundle exec rspec spec`
Then a file named "coverage/index.html" should exist
But a file named "coverage/.resultset.json" should not exist
Given I open the coverage report
Then the report should be based upon:
| RSpec |