Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5cab915

Browse filesBrowse files
authored
chore(test): no coverage by default (#920)
NYC takes forever on my local machine, and I generally prefer to look at coverage reports on the website anyway. This changes `npm test` to run without coverage, and changes our CI to run `npm run test-with-coverage` instead.
1 parent e606706 commit 5cab915
Copy full SHA for 5cab915

File tree

Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ os:
1010
- linux
1111
- osx
1212
script:
13-
- npm test
13+
- npm run test-with-coverage
1414
# make sure when the docs are generated nothing changes (a.k.a. the docs have already been generated)
1515
- npm run gendocs
1616
- npm run check-node-support

‎appveyor.yml

Copy file name to clipboardExpand all lines: appveyor.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ matrix:
2222
build: off
2323

2424
test_script:
25-
- npm test
25+
- npm run test-with-coverage
2626

2727
on_success:
2828
- npm run codecov -- -f coverage/lcov.info

‎package.json

Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"scripts": {
3636
"check-node-support": "node scripts/check-node-support",
3737
"posttest": "npm run lint",
38-
"test": "nyc --reporter=text --reporter=lcov ava test/*.js",
39-
"test-no-coverage": "ava test/*.js",
38+
"test": "ava test/*.js",
39+
"test-with-coverage": "nyc --reporter=text --reporter=lcov ava test/*.js",
4040
"gendocs": "node scripts/generate-docs",
4141
"lint": "eslint .",
4242
"after-travis": "travis-check-changes",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.