mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Merge pull request #986 from jzoldak/zoldak/add-coverage
Measure test coverage
This commit is contained in:
commit
df62a2d407
3 changed files with 20 additions and 10 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -18,3 +18,7 @@ npm-*
|
||||||
!.elasticbeanstalk/*.global.yml
|
!.elasticbeanstalk/*.global.yml
|
||||||
deploy.zip
|
deploy.zip
|
||||||
ENV
|
ENV
|
||||||
|
|
||||||
|
# Test
|
||||||
|
/.nyc_output
|
||||||
|
/coverage
|
||||||
|
|
17
Makefile
17
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,13 +51,7 @@ start:
|
||||||
test:
|
test:
|
||||||
@make lint
|
@make lint
|
||||||
@make build
|
@make build
|
||||||
@echo ""
|
@make tap
|
||||||
@make unit
|
|
||||||
@echo ""
|
|
||||||
@make functional
|
|
||||||
@echo ""
|
|
||||||
@make localization
|
|
||||||
@echo ""
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
$(ESLINT) . --ext .js,.jsx,.json
|
$(ESLINT) . --ext .js,.jsx,.json
|
||||||
|
@ -77,6 +70,12 @@ integration:
|
||||||
localization:
|
localization:
|
||||||
$(TAP) ./test/localization/*.js
|
$(TAP) ./test/localization/*.js
|
||||||
|
|
||||||
|
tap:
|
||||||
|
$(TAP) ./test/{unit,functional,localization}/*.js
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
$(TAP) ./test/{unit,functional,localization}/*.js --coverage --coverage-report=lcov
|
||||||
|
|
||||||
# ------------------------------------
|
# ------------------------------------
|
||||||
|
|
||||||
.PHONY: build clean deploy translations webpack stop start test lint unit functional integration localization
|
.PHONY: build clean deploy translations webpack start test lint unit functional integration localization tap coverage
|
||||||
|
|
|
@ -87,11 +87,18 @@
|
||||||
"slick-carousel": "1.5.8",
|
"slick-carousel": "1.5.8",
|
||||||
"source-map-support": "0.3.2",
|
"source-map-support": "0.3.2",
|
||||||
"style-loader": "0.12.3",
|
"style-loader": "0.12.3",
|
||||||
"tap": "2.0.0",
|
"tap": "7.1.2",
|
||||||
"url-loader": "0.5.6",
|
"url-loader": "0.5.6",
|
||||||
"watch": "0.16.0",
|
"watch": "0.16.0",
|
||||||
"webpack": "1.12.14",
|
"webpack": "1.12.14",
|
||||||
"webpack-dev-middleware": "1.2.0",
|
"webpack-dev-middleware": "1.2.0",
|
||||||
"xhr": "2.2.0"
|
"xhr": "2.2.0"
|
||||||
|
},
|
||||||
|
"nyc": {
|
||||||
|
"include": [
|
||||||
|
"bin/**/*.js",
|
||||||
|
"src/**/*.js"
|
||||||
|
],
|
||||||
|
"all": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue