mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Output coverage data only when make coverage is executed
This commit is contained in:
parent
8260e40385
commit
838925cca0
2 changed files with 10 additions and 9 deletions
18
Makefile
18
Makefile
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue