codacy-coverage
Advanced tools
Comparing version 3.2.0 to 3.3.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94054
40
1429
9
52
+ Addedjacoco-parse@^2.x
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrowser-stdout@1.3.1(transitive)
+ Addedcommander@2.15.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addeddiff@3.5.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.1.2(transitive)
+ Addedgrowl@1.10.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhe@1.1.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjacoco-parse@2.0.1(transitive)
+ Addedminimatch@3.0.4(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.5.1(transitive)
+ Addedmocha@5.2.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedsax@1.4.1(transitive)
+ Addedsupports-color@5.4.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxml2js@0.4.23(transitive)
+ Addedxmlbuilder@11.0.1(transitive)