Output coverage data only when make coverage is executed

This commit is contained in:
Jesse Zoldak 2016-10-28 17:56:41 -04:00
parent 8260e40385
commit 838925cca0
2 changed files with 10 additions and 9 deletions

View file

@ -19,7 +19,6 @@ clean:
mkdir -p build
mkdir -p intl
deploy:
@make build
@make sync
@ -52,7 +51,7 @@ start:
test:
@make lint
@make build
@make coverage
@make tap
lint:
$(ESLINT) . --ext .js,.jsx,.json
@ -60,20 +59,23 @@ lint:
$(SASSLINT) ./src/**/*.scss
unit:
$(TAP) --coverage ./test/unit/*.js
$(TAP) ./test/unit/*.js
functional:
$(TAP) --coverage ./test/functional/*.js
$(TAP) ./test/functional/*.js
integration:
$(TAP) --coverage ./test/integration/*.js
$(TAP) ./test/integration/*.js
localization:
$(TAP) --coverage ./test/localization/*.js
$(TAP) ./test/localization/*.js
tap:
$(TAP) ./test/{unit,functional,localization}/*.js
coverage:
$(TAP) --coverage ./test/{unit,functional,localization}/*.js
$(TAP) ./test/{unit,functional,localization}/*.js --coverage --coverage-report=lcov
# ------------------------------------
.PHONY: build clean deploy translations webpack stop start test lint unit functional integration localization coverage
.PHONY: build clean deploy translations webpack start test lint unit functional integration localization tap coverage

View file

@ -65,7 +65,6 @@
"lodash.range": "3.0.1",
"minilog": "2.0.8",
"node-sass": "3.3.3",
"nyc": "8.3.2",
"pako": "0.2.8",
"po2icu": "0.0.2",
"postcss-loader": "0.8.2",