From 42756854a590e63eb6e57814f83a2cbe981f8cf4 Mon Sep 17 00:00:00 2001 From: thomas morgan Date: Mon, 5 Aug 2019 15:42:56 -0600 Subject: [PATCH] clarify exit message --- features/minimum_coverage.feature | 4 ++-- lib/simplecov.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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