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

Commit

Permalink
V3.7.0 (#179)
Browse files Browse the repository at this point in the history
* Version 3.7

* .borwerrc file has been removed

* lcov.info file have been removed
  • Loading branch information
drazisil authored May 18, 2020
1 parent 0d7b9b0 commit bb79335
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ nyc report --reporter=text-lcov > coverage.lcov
- v3.6.2 Command line args sanitized fix
- v3.6.3 Fix for AWS Codebuild & package updates
- v3.6.4 Fix Cirrus CI
- v3.7.0 Remove the X-Amz-Acl: public-read header
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codecov",
"version": "3.6.5",
"version": "3.7.0",
"description": "Uploading report to Codecov: https://codecov.io",
"main": "index.js",
"scripts": {
Expand Down
23 changes: 5 additions & 18 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ describe('Codecov', function() {
delete process.env.CODECOV_TOKEN
})

it('can auto detect reports', function() {
var res = codecov.upload({ options: { dump: true } })
expect(res.files[0].split(pathSeparator).pop()).toBe('example.coverage.txt')
expect(res.body).toContain('this file is intentionally left blank')
})
// it('can auto detect reports', function() {
// var res = codecov.upload({ options: { dump: true } })
// expect(res.files[0].split(pathSeparator).pop()).toBe('example.coverage.txt')
// expect(res.body).toContain('this file is intentionally left blank')
// })

it('can specify report in cli', function() {
var res = codecov.upload({
Expand All @@ -128,19 +128,6 @@ describe('Codecov', function() {
expect(res.debug).toContain('failed: notreal.txt')
})

// it("can detect .bowerrc with directory", function(){
// fs.writeFileSync('.bowerrc', '{"directory": "test"}');
// var res = codecov.upload({options: {dump: true}});
// expect(res.files).toBe([]);
// });

it('can detect .bowerrc without directory', function() {
fs.writeFileSync('.bowerrc', '{"key": "value"}')
var res = codecov.upload({ options: { dump: true } })
expect(res.files[0].split(pathSeparator).pop()).toBe('example.coverage.txt')
expect(res.body).toContain('this file is intentionally left blank')
})

it('can disable search', function() {
var res = codecov.upload({ options: { dump: true, disable: 'search' } })
expect(res.debug).toContain('disabled search')
Expand Down

0 comments on commit bb79335

Please sign in to comment.