Merge pull request #924 from strongloop/refactor/remove-makefile
Use mocha instead of Makefile for testing
This commit is contained in:
commit
1d39e41d00
43
Makefile
43
Makefile
|
@ -1,43 +0,0 @@
|
||||||
TESTER = ./node_modules/.bin/mocha
|
|
||||||
OPTS = --growl
|
|
||||||
TESTS = test/*.test.js
|
|
||||||
|
|
||||||
default: help
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
rm -rf $(CURDIR)/node_modules
|
|
||||||
|
|
||||||
.PHONY: help
|
|
||||||
help:
|
|
||||||
@echo 'Usage: make [target]'
|
|
||||||
@echo 'Targets:'
|
|
||||||
@echo ' clean Delete `node_modules`'
|
|
||||||
@echo ' help Print help (this message)'
|
|
||||||
@echo ' refresh Delete `node_modules` and run `npm install`'
|
|
||||||
@echo ' test Run tests in silent mode'
|
|
||||||
@echo ' test-verbose Run tests in verbose mode'
|
|
||||||
@echo ' testing Run tests continuously'
|
|
||||||
|
|
||||||
.PHONY: refresh
|
|
||||||
refresh: clean
|
|
||||||
npm install
|
|
||||||
|
|
||||||
.PHONY: test
|
|
||||||
test:
|
|
||||||
NO_DEPRECATION=loopback-datasource-juggler $(TESTER) $(OPTS) $(TESTS)
|
|
||||||
|
|
||||||
.PHONY: test-verbose
|
|
||||||
test-verbose:
|
|
||||||
$(TESTER) $(OPTS) --reporter spec $(TESTS)
|
|
||||||
|
|
||||||
.PHONY: testing
|
|
||||||
testing:
|
|
||||||
$(TESTER) $(OPTS) --watch $(TESTS)
|
|
||||||
|
|
||||||
# Deprecated targets
|
|
||||||
|
|
||||||
.PHONY: about-testing
|
|
||||||
about-testing:
|
|
||||||
@echo 'DEPRECATED: Use `make help` instead'
|
|
||||||
make help
|
|
|
@ -24,12 +24,9 @@
|
||||||
"depd": "./lib/browser.depd.js"
|
"depd": "./lib/browser.depd.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "make clean",
|
"lint": "eslint .",
|
||||||
"help": "make help",
|
"test": "mocha",
|
||||||
"refresh": "make refresh",
|
"posttest": "npm run lint"
|
||||||
"test": "make test",
|
|
||||||
"posttest": "npm run lint",
|
|
||||||
"lint": "eslint ."
|
|
||||||
},
|
},
|
||||||
"engines": [
|
"engines": [
|
||||||
"node >= 0.6"
|
"node >= 0.6"
|
||||||
|
|
Loading…
Reference in New Issue