Skip to content

Commit

Permalink
Revert #243.
Browse files Browse the repository at this point in the history
cobertura-parse is archived and in bad shape. They even have mocha in dependencies.
  • Loading branch information
XhmikosR authored and nickmerwin committed Nov 26, 2019
1 parent 4aa11a2 commit 1bceeff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 116 deletions.
5 changes: 1 addition & 4 deletions lib/convertLcovToCoveralls.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const fs = require('fs');
const path = require('path');
const lcovParse = require('lcov-parse');
const logger = require('./logger')();
const coberturaParse = require('cobertura-parse');

const detailsToCoverage = (length, details) => {
const coverage = new Array(length);
Expand Down Expand Up @@ -54,9 +53,7 @@ const convertLcovToCoveralls = (input, options, cb) => {
let filepath = options.filepath || '';
logger.debug('in: ', filepath);
filepath = path.resolve(process.cwd(), filepath);
const filetype = options.filetype || 'lcov';
const parser = filetype === 'cobertura' ? coberturaParse.parseContent : lcovParse;
parser(input, (err, parsed) => {
lcovParse(input, (err, parsed) => {
if (err) {
logger.error('error from lcovParse: ', err);
logger.error('input: ', input);
Expand Down
136 changes: 25 additions & 111 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"Adam Moss (https://github.com/adam-moss)"
],
"dependencies": {
"cobertura-parse": "^1.0.5",
"js-yaml": "^3.13.1",
"lcov-parse": "^1.0.0",
"log-driver": "^1.2.7",
Expand Down

0 comments on commit 1bceeff

Please sign in to comment.