diff --git a/CHANGELOG.md b/CHANGELOG.md index 089049f..842c06e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### `0.4.3` +- #135 Shorten coverage message on formatter + ### `0.4.2` - #134 Wrap file creation in try/catch diff --git a/lib/codecov/formatter.rb b/lib/codecov/formatter.rb index c4c5c0b..47cf791 100644 --- a/lib/codecov/formatter.rb +++ b/lib/codecov/formatter.rb @@ -20,7 +20,8 @@ def format(report) begin result_path = File.join(::SimpleCov.coverage_path, RESULT_FILE_NAME) File.write(result_path, result['codecov']) - puts "Coverage report generated to #{result_path}.\n#{result}" + overflow = result['coverage'].to_s.length > 256 ? '...' : '' + puts "Coverage report generated to #{result_path}.\n#{result['coverage'].to_s.[](0, 255)}#{overflow}" rescue Errno::ENOENT => e puts e puts "Could not write coverage report to file.\n#{result}" diff --git a/lib/codecov/version.rb b/lib/codecov/version.rb index f9f0fb2..aeaae12 100644 --- a/lib/codecov/version.rb +++ b/lib/codecov/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Codecov - VERSION = '0.4.2' + VERSION = '0.4.3' end