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 build
mkdir -p intl mkdir -p intl
deploy: deploy:
@make build @make build
@make sync @make sync
@ -52,7 +51,7 @@ start:
test: test:
@make lint @make lint
@make build @make build
@make coverage @make tap
lint: lint:
$(ESLINT) . --ext .js,.jsx,.json $(ESLINT) . --ext .js,.jsx,.json
@ -60,20 +59,23 @@ lint:
$(SASSLINT) ./src/**/*.scss $(SASSLINT) ./src/**/*.scss
unit: unit:
$(TAP) --coverage ./test/unit/*.js $(TAP) ./test/unit/*.js
functional: functional:
$(TAP) --coverage ./test/functional/*.js $(TAP) ./test/functional/*.js
integration: integration:
$(TAP) --coverage ./test/integration/*.js $(TAP) ./test/integration/*.js
localization: localization:
$(TAP) --coverage ./test/localization/*.js $(TAP) ./test/localization/*.js
tap:
$(TAP) ./test/{unit,functional,localization}/*.js
coverage: 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", "lodash.range": "3.0.1",
"minilog": "2.0.8", "minilog": "2.0.8",
"node-sass": "3.3.3", "node-sass": "3.3.3",
"nyc": "8.3.2",
"pako": "0.2.8", "pako": "0.2.8",
"po2icu": "0.0.2", "po2icu": "0.0.2",
"postcss-loader": "0.8.2", "postcss-loader": "0.8.2",