Skip to content

Commit

Permalink
* Removed coverage script
Browse files Browse the repository at this point in the history
* Replaced test script with coverage script
* Added in --reporter=text to coverage
* Added testonly script
  • Loading branch information
rwky committed Sep 10, 2019
1 parent 9fe7778 commit de91920
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js:
- "12"

script:
- "npm run coverage"
- "npm run test"
- "npm run lint"

after_success:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
This changelog follows Semantic Versioning https://semver.org/

# 3.0.0

### Major

* Removed coverage script

### Minor

* Replaced test script with coverage script
* Added in --reporter=text to coverage
* Added testonly script

# 2.0.1

### Patch
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@passport-next/skel",
"version": "2.0.1",
"version": "3.0.0",
"description": "Passport next project skeleton",
"author": {
"name": "Passport Next Developers",
Expand Down Expand Up @@ -60,8 +60,8 @@
"init-new-project": "node ./templates/gen --init",
"lint": "eslint --max-warnings 0 --ext js,md .",
"lintfix": "eslint --ext js,md . --fix",
"test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js",
"coverage": "nyc --report-dir=var/coverage --reporter=lcov npm test",
"testonly": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js",
"test": "nyc --report-dir=var/coverage --reporter=lcov --reporter=text npm run testonly",
"coveralls": "nyc report --report-dir=var/coverage --reporter=text-lcov | coveralls"
}
}
2 changes: 1 addition & 1 deletion templates/.travis.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ node_js:{% for version in supportedNodeVersions %}
- "{{version}}"{% endfor %}

script:
- "npm run coverage"
- "npm run test"
- "npm run lint"

after_success:
Expand Down
3 changes: 1 addition & 2 deletions templates/package.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
"init-new-project": "node ./templates/gen --init",
"lint": "eslint --max-warnings 0 --ext js,md .",
"lintfix": "eslint --ext js,md . --fix",
"test": "mocha --reporter spec --require test/bootstrap/node test/*.test.js test/**/*.test.js",
"coverage": "nyc --report-dir=var/coverage --reporter=lcov npm test",
"test": "nyc --report-dir=var/coverage --reporter=lcov --reporter=text npm test",
"coveralls": "nyc report --report-dir=var/coverage --reporter=text-lcov | coveralls"
}
}

0 comments on commit de91920

Please sign in to comment.