Skip to content

Commit

Permalink
reformat and reformulate some cukes
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Jan 9, 2021
1 parent 10c1dff commit e0c5fd1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions features/maximum_coverage_drop.feature
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Feature:
}
}
"""

Scenario: test failures do not update the resultset
Given SimpleCov for RSpec is configured with:
"""
Expand Down Expand Up @@ -139,7 +140,8 @@ Feature:
}
}
"""
Scenario: When the previous last_run file has covered_percent

Scenario: When the previous last_run file has legacy covered_percent it still works
Given SimpleCov for Test/Unit is configured with:
"""
require 'simplecov'
Expand Down Expand Up @@ -169,7 +171,7 @@ Feature:
}
"""

Scenario: When the previous last_run file has covered_percent does not update resultset
Scenario: When the previous last_run file has covered_percent and we fail does not update it
Given SimpleCov for RSpec is configured with:
"""
require 'simplecov'
Expand Down Expand Up @@ -257,7 +259,7 @@ Feature:
{
"result": {
"line": 100.0,
"branch": 100.0
"branch": 100.0
}
}
"""
Expand Down Expand Up @@ -324,8 +326,8 @@ Feature:
SimpleCov.start do
add_filter 'test.rb'
enable_coverage :branch
primary_coverage :branch
maximum_coverage_drop line: 0, branch: 0
primary_coverage :branch
maximum_coverage_drop line: 0, branch: 0
end
"""
And a file named "lib/faked_project/missed.rb" with:
Expand Down Expand Up @@ -353,7 +355,7 @@ Feature:
{
"result": {
"line": 100.0,
"branch": 100.0
"branch": 100.0
}
}
"""
Expand Down

0 comments on commit e0c5fd1

Please sign in to comment.