codacy-coverage
Advanced tools
Comparing version
{ | ||
"env": { | ||
"es6": true, | ||
"mocha": true, | ||
@@ -4,0 +5,0 @@ "node": true |
(function (Joi, util, logger) { | ||
'use strict'; | ||
var validFormats = ['lcov']; | ||
var validFormats = ['lcov','jacoco']; | ||
var formatValidation = Joi.string().valid(validFormats).required(); | ||
@@ -6,0 +6,0 @@ |
@@ -26,3 +26,4 @@ (function(request, Joi, Promise, util, lodash, logger) { | ||
tsx: 'typescript', | ||
coffee: 'coffeescript' | ||
coffee: 'coffeescript', | ||
java: 'java' | ||
}; | ||
@@ -29,0 +30,0 @@ |
{ | ||
"name": "codacy-coverage", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Code Coverage reporter for Codacy.com", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 6.0.0" | ||
"node": ">= 8.12.0" | ||
}, | ||
@@ -39,2 +39,3 @@ "dependencies": { | ||
"lcov-parse": "^1.x", | ||
"jacoco-parse": "^2.x", | ||
"lodash": "^4.17.4", | ||
@@ -41,0 +42,0 @@ "log-driver": "^1.x", |
@@ -5,4 +5,7 @@ (function (util, parser, helper) { | ||
var expect = helper.chai.expect; | ||
var validFormats = ['lcov']; | ||
var validFormats = ['lcov','jacoco']; | ||
var errorMsg = new Map([ | ||
{lcov: 'Failed to parse string'}, | ||
{jacoco: 'Failed to parse jacoco report: Error: Non-whitespace before first tag'} | ||
]) | ||
describe('Coverage Parser', function () { | ||
@@ -25,9 +28,9 @@ it('should receive an error when trying to use an unsupported format', function () { | ||
it('shouldn\'t be able to parse invalid coverage for ' + format, function () { | ||
return expect(parser.getParser(format).parse('', 'There is no Dana, only Zuul')).to.eventually.be.rejectedWith(Error, 'Failed to parse string'); | ||
return expect(parser.getParser(format).parse('', 'There is no Dana, only Zuul')).to.eventually.be.rejectedWith(Error, errorMsg.get(format)); | ||
}); | ||
it('shouldn\'t be able to parse a non-existent coverage file for ' + format, function () { | ||
return expect(parser.getParser(format).parse('', '/no-exist/lcov')).to.eventually.be.rejectedWith(Error, 'Failed to parse string'); | ||
return expect(parser.getParser(format).parse('', '/no-exist/lcov')).to.eventually.be.rejectedWith(Error, errorMsg.get(format)); | ||
}); | ||
}); | ||
}); | ||
}(require('util'), require('../lib/coverageParser'), require('./helper'))); | ||
}(require('util'), require('../lib/coverageParser'), require('./helper'))); |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
94054
26.47%40
17.65%1429
12.7%9
12.5%53
3.92%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added