diff --git a/features/minimum_coverage.feature b/features/minimum_coverage.feature index f51eccf7..d887235c 100644 --- a/features/minimum_coverage.feature +++ b/features/minimum_coverage.feature @@ -17,7 +17,7 @@ Feature: When I run `bundle exec rake test` Then the exit status should not be 0 And the output should contain "Coverage (88.10%) is below the expected minimum coverage (90.00%)." - And the output should contain "SimpleCov failed with exit 2" + And the output should contain "Exiting with status 2." Scenario: Given SimpleCov for Test/Unit is configured with: @@ -32,7 +32,7 @@ Feature: When I run `bundle exec rake test` Then the exit status should not be 0 And the output should contain "Coverage (88.10%) is below the expected minimum coverage (88.11%)." - And the output should contain "SimpleCov failed with exit 2" + And the output should contain "Exiting with status 2." Scenario: Given SimpleCov for Test/Unit is configured with: diff --git a/lib/simplecov.rb b/lib/simplecov.rb index f07923ff..34028343 100644 --- a/lib/simplecov.rb +++ b/lib/simplecov.rb @@ -186,7 +186,7 @@ def run_exit_tasks! # Force exit with stored status (see github issue #5) # unless it's nil or 0 (see github issue #281) if exit_status && exit_status.positive? - $stderr.printf("SimpleCov failed with exit %d", exit_status) + $stderr.printf("Exiting with status %d.\n", exit_status) Kernel.exit exit_status end end