Skip to content

Commit

Permalink
Merge pull request #189 from zonkyio/code-coverage
Browse files Browse the repository at this point in the history
Setup code coverage
  • Loading branch information
bobisjan committed Jun 27, 2019
2 parents 41dba75 + f69c654 commit 9bce0e7
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
=======
/.env*
/.eslintcache
/.nyc_output
/.pnp*
/.sass-cache
/connect.lock
Expand Down
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ jobs:
- yarn test

- name: 'Node Tests'
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- yarn node-test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

- name: 'Floating Dependencies'
script:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Build Status](https://travis-ci.org/zonkyio/ember-web-app.svg?branch=master)](https://travis-ci.org/zonkyio/ember-web-app)
[![Ember Observer Score](https://emberobserver.com/badges/ember-web-app.svg)](https://emberobserver.com/addons/ember-web-app)
[![Maintainability](https://api.codeclimate.com/v1/badges/3745a4b7af3f134d40ed/maintainability)](https://codeclimate.com/github/zonkyio/ember-web-app/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/3745a4b7af3f134d40ed/test_coverage)](https://codeclimate.com/github/zonkyio/ember-web-app/test_coverage)
[![dependencies Status](https://david-dm.org/zonkyio/ember-web-app/status.svg)](https://david-dm.org/zonkyio/ember-web-app)
[![devDependencies Status](https://david-dm.org/zonkyio/ember-web-app/dev-status.svg)](https://david-dm.org/zonkyio/ember-web-app?type=dev)

Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"build": "ember build",
"fast-test": "SKIP_ACCEPTANCE=true yarn node-test",
"node-test": "mocha --recursive node-tests",
"node-test": "nyc --reporter=lcov mocha --recursive node-tests",
"changelog": "lerna-changelog",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint . --cache",
Expand Down Expand Up @@ -73,6 +73,7 @@
"lerna-changelog": "^0.8.2",
"loader.js": "^4.7.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"prettier": "^1.18.2",
"qunit-dom": "^0.9.0"
},
Expand All @@ -85,5 +86,13 @@
"ember-addon": {
"configPath": "tests/dummy/config",
"before": "broccoli-asset-rev"
},
"nyc": {
"all": true,
"include": [
"index.js",
"blueprints/ember-web-app/index.js",
"lib/*"
]
}
}

0 comments on commit 9bce0e7

Please sign in to comment.