forked from simplecov-ruby/simplecov
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_coverage_dir.feature
More file actions
33 lines (28 loc) · 986 Bytes
/
config_coverage_dir.feature
File metadata and controls
33 lines (28 loc) · 986 Bytes
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
@test_unit @config
Feature:
The output directory for test coverage can be customized
with the SimpleCov.coverage_dir setting. All coverage reports
will be put there instead of the default 'coverage' directory
in your project's root.
Scenario:
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
SimpleCov.start do
coverage_dir 'test/simplecov'
end
"""
When I successfully run `bundle exec rake test`
Then a coverage report should have been generated in "test/simplecov"
And a directory named "coverage" should not exist
Scenario:
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
SimpleCov.start do
coverage_dir '/tmp/test/simplecov'
end
"""
When I successfully run `bundle exec rake test`
Then a coverage report should have been generated in "/tmp/test/simplecov"
And a directory named "coverage" should not exist