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
|
@test_unit @rspec @merging @config
Feature:
The maximum time between resultset merges can be customized
using SimpleCov.merge_timeout SECONDS. This can be helpful for
long-running test-suites that fail to merge because of the time
between individual suite finishes is more then the default timeout
of 10 minutes.
Here, for the sake of testing the opposite case is shown, choosing
a merge timeout so short that the first test suite's results actually
are out of date when the second suite finishes and thus does not end up
in the report.
Background:
Given I'm working on the project "faked_project"
Scenario:
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
SimpleCov.start do
merge_timeout 5
end
"""
Given SimpleCov for RSpec is configured with:
"""
require 'simplecov'
SimpleCov.start do
merge_timeout 5
end
"""
When I open the coverage report generated with `bundle exec rake test`
Then the report should be based upon:
| Unit Tests |
When I wait for 5 seconds
And I open the coverage report generated with `bundle exec rspec spec`
Then the report should be based upon:
| RSpec |
|