diff options
| author | Matthew Bergman <[email protected]> | 2013-01-08 09:35:00 -0800 |
|---|---|---|
| committer | Matthew Bergman <[email protected]> | 2013-01-08 09:35:00 -0800 |
| commit | fd79022a8cb6d0d3adc50e8af96a5e2ae93d8e53 (patch) | |
| tree | 28c0bd9453cf4e6d273b97bfe2ce53cab11d3330 /Makefile | |
| parent | 1e4fcf794181b8d8c9286ee1890a903199f81847 (diff) | |
| parent | 19d0e99ebec18bab6047bf944c07fc472fd9773a (diff) | |
| download | faker-fd79022a8cb6d0d3adc50e8af96a5e2ae93d8e53.tar.xz faker-fd79022a8cb6d0d3adc50e8af96a5e2ae93d8e53.zip | |
Merge pull request #37 from BryanDonovan/main
Refactored with 100% test coverage
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..bd0e51ab --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +BASE = . + +ISTANBUL = ./node_modules/.bin/istanbul +COVERAGE_OPTS = --lines 95 --statements 95 --branches 95 --functions 95 + +main: lint test + +build: + cd BUILD && node BUILD.js + +cover: + $(ISTANBUL) cover test/run.js --root ./lib -- -T unit,functional + +check-coverage: + $(ISTANBUL) check-coverage $(COVERAGE_OPTS) + +test: cover check-coverage + +test-cov: cover check-coverage + open coverage/lcov-report/index.html + +lint: + ./node_modules/jshint/bin/hint ./lib --config $(BASE)/.jshintrc + + +.PHONY: test, build |
