Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit e4d3622

Browse files
committed
fix tests
1 parent 7229755 commit e4d3622

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/test_codecov.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,17 @@ def test_bitbucket
497497
end
498498

499499
def test_filenames_are_shortened_correctly
500+
ENV['CODECOV_TOKEN'] = 'f881216b-b5c0-4eb1-8f21-b51887d1d506'
501+
500502
formatter = SimpleCov::Formatter::Codecov.new
501503
result = stub('SimpleCov::Result', files: [
502504
stub_file('/path/lib/something.rb', []),
503505
stub_file('/path/path/lib/path_somefile.rb', [])
504506
])
505507
SimpleCov.stubs(:root).returns('/path')
506508
data = formatter.format(result)
509+
puts data
510+
puts data['params']
507511
assert_equal(data['coverage'].to_json, {
508512
'lib/something.rb' => [nil],
509513
'path/lib/path_somefile.rb' => [nil]

0 commit comments

Comments
 (0)