Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codacy-coverage

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codacy-coverage - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

lib/impl/jacoco.js

1

.eslintrc.json
{
"env": {
"es6": true,
"mocha": true,

@@ -4,0 +5,0 @@ "node": true

2

lib/coverageParser.js
(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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc