features/config_nocov_token.feature in simplecov-0.5.4 vs features/config_nocov_token.feature in simplecov-0.6.0
- old
+ new
@@ -1,20 +1,20 @@
@test_unit @nocov
Feature:
Code wrapped in # :nocov: will be ignored by coverage reports.
The name of the token can be configured with SimpleCov.nocov_token or SimpleCov.skip_token
-
+
Scenario: Custom nocov token using nocov_token
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
SimpleCov.start 'test_frameworks' do
nocov_token 'skippit'
end
"""
-
+
Given a file named "lib/faked_project/nocov.rb" with:
"""
class SourceCodeWithNocov
# :skippit:
def some_weird_code
@@ -38,11 +38,11 @@
And there should be 5 skipped lines in the source files
And the report should be based upon:
| Unit Tests |
-
+
Scenario: Custom nocov token using skip_token
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
SimpleCov.start 'test_frameworks' do
@@ -74,6 +74,6 @@
| lib/faked_project/nocov.rb | 100.0 % |
And there should be 5 skipped lines in the source files
And the report should be based upon:
- | Unit Tests |
\ No newline at end of file
+ | Unit Tests |