Skip to content

Commit 41c6ca8

Browse files
committed
resolves #22 by switching from istanbul to nyc
1 parent 7e31617 commit 41c6ca8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+121
-17
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.nyc_output/
12
coverage/
23
node_modules/
34
*.log

.istanbul.yml

-6
This file was deleted.

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ test/
44
*.log
55
AUTHORS.md
66
CHANGES.md
7+
codecov.yml
78
CONTRIBUTING.md
89
README.md

.nycrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"check-coverage": true,
3+
"lines": 95,
4+
"statements": 95,
5+
"functions": 95,
6+
"branches": 95,
7+
"include": [ "src/**/*.js" ],
8+
"reporter": [ "lcov" ]
9+
}

.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ sudo: false
22
language: node_js
33
node_js:
44
- "8"
5-
before_script:
6-
- npm install -g npm@latest
75
script:
86
- npm test
9-
after_script:
10-
- npm run report-coverage
7+
after_success:
8+
- npm run coverage
119
notifications:
1210
slack:
1311
rooms:

CONTRIBUTING.md

+1-2

codecov.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
comment: off
2+
coverage:
3+
precision: 2
4+
range: "95...100"
5+
round: down

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@
4747
"codecov": "^3.0.0",
4848
"eslint": "^4.13.1",
4949
"eslint-config-notninja": "^0.2.3",
50-
"istanbul": "^0.4.5",
5150
"mocha": "^4.0.1",
51+
"nyc": "^11.3.0",
5252
"sinon": "^4.1.3"
5353
},
5454
"bin": {
5555
"brander": "bin/brander"
5656
},
5757
"main": "src/brander.js",
5858
"scripts": {
59-
"report-coverage": "istanbul cover _mocha --report lcovonly -- -R list \"test/**/*.spec.js\" && codecov",
60-
"pretest": "eslint \"src/**/*.js\" \"test/**/*.js\"",
61-
"test": "istanbul cover _mocha -- -R list \"test/**/*.spec.js\"",
62-
"posttest": "istanbul check-coverage"
59+
"coverage": "nyc report && codecov",
60+
"pretest": "eslint \"bin/brander\" \"src/**/*.js\" \"test/**/*.js\"",
61+
"test": "nyc mocha -R list \"test/**/*.spec.js\"",
62+
"posttest": "nyc check-coverage"
6363
},
6464
"engines": {
6565
"node": ">=8"

src/brander.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const chalk = require('chalk');
2628

2729
const DocumentContextParser = require('./doc/document-context-parser');

src/color.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const convert = require('color-convert');
2729

src/config/config-loader.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const chalk = require('chalk');
2628
const debug = require('debug')('brander:config');
2729
const path = require('path');

src/config/config.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const { EOL } = require('os');
2729
const path = require('path');

src/config/context-parser.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const debug = require('debug')('brander:config');
2729
const { EventEmitter } = require('events');

src/config/context-runner.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const { EventEmitter } = require('events');
2628
const pollock = require('pollock');
2729

src/config/context.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _config = Symbol('config');
2628

2729
/**

src/config/expression.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628

2729
const _compiled = Symbol('compiled');

src/config/package/package-loader.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const chalk = require('chalk');
2628
const debug = require('debug')('brander:config');
2729
const pkgUp = require('pkg-up');

src/config/package/package.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628

2729
const _data = Symbol('data');

src/config/repository/git/git-repository-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const chalk = require('chalk');
2729
const debug = require('debug')('brander:config:repository:git');

src/config/repository/git/git-repository.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const Repository = require('../repository');
2628

2729
const _host = Symbol('host');

src/config/repository/repo.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _get = Symbol('get');
2628
const _repository = Symbol('repository');
2729

src/config/repository/repository-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const pollock = require('pollock');
2628

2729
const _type = Symbol('type');

src/config/repository/repository-service.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const chalk = require('chalk');
2729
const debug = require('debug')('brander:config:repository');

src/config/repository/repository.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const pollock = require('pollock');
2628

2729
const _type = Symbol('type');

src/config/scope.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _attributes = Symbol('attributes');
2628
const _docs = Symbol('docs');
2729
const _tasks = Symbol('tasks');

src/doc/asset-feature/asset-feature-document-context.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'use strict';
2424

2525
/* eslint "max-params": "off" */
26+
/* istanbul ignore file */
2627

2728
const DocumentContext = require('../document-context');
2829

src/doc/asset-feature/asset-feature-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const chalk = require('chalk');
2729
const debug = require('debug')('brander:doc:asset-feature');

src/doc/container/container-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const debug = require('debug')('brander:doc:container');
2729
const pluralize = require('pluralize');

src/doc/document-context-parser.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628

2729
const ContextParser = require('../config/context-parser');

src/doc/document-context-runner.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const ContextRunner = require('../config/context-runner');
2628
const DocumentService = require('./document-service');
2729

src/doc/document-context.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628

2729
const Context = require('../config/context');

src/doc/document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const pollock = require('pollock');
2628

2729
/**

src/doc/document-service.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const debug = require('debug')('brander:doc');
2729

src/doc/hr/hr-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const debug = require('debug')('brander:doc:hr');
2628

2729
const DocumentContext = require('../document-context');

src/doc/root/root-document-context.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const DocumentContext = require('../document-context');
2628

2729
const _file = Symbol('file');

src/doc/root/root-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const chalk = require('chalk');
2729
const debug = require('debug')('brander:doc:root');

src/doc/table/color-table-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const debug = require('debug')('brander:doc:table');
2628
const pluralize = require('pluralize');
2729

src/doc/table/table-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const debug = require('debug')('brander:doc:table');
2628
const pluralize = require('pluralize');
2729

src/doc/template/template-document-provider.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const chalk = require('chalk');
2729
const debug = require('debug')('brander:doc:template');

src/doc/toc/toc-document-provider.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'use strict';
2424

2525
/* eslint "max-params": "off" */
26+
/* istanbul ignore file */
2627

2728
const _ = require('lodash');
2829
const chalk = require('chalk');

src/file.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const _ = require('lodash');
2628
const fs = require('fs');
2729
const glob = require('glob');

src/logger.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const chalk = require('chalk');
2628
const { EOL } = require('os');
2729
const util = require('util');

src/size.js

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
'use strict';
2424

25+
/* istanbul ignore file */
26+
2527
const imageSize = require('image-size');
2628
const util = require('util');
2729

0 commit comments

Comments
 (0)