diff --git a/Makefile b/Makefile index b229783002..51fc240391 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ MOCHA_CMD = node_modules/mocha/bin/_mocha export NODE_ENV = test -.PHONY: clean test test-cov tlint est-travis test-appveyor test-browser publish bench build +.PHONY: clean test test-cov test-clean lint test-travis test-spec test-browser publish bench build clean: rm -rf coverage templates.json test/tmp dist @@ -18,19 +18,23 @@ bench: lint: $(JSHINT_CMD) lib bin benchmark/index.js +test-clean: + rm -rf test/tmp + test: make lint $(MOCHA_CMD) + make test-clean test-cov: rm -rf coverage node $(ISTANBUL_CMD) $(MOCHA_CMD) -- -test-appveyor: +test-spec: node $(ISTANBUL_CMD) $(MOCHA_CMD) -- --reporter spec test-travis: - make test-appveyor + make test-spec if test -n "$$CODECLIMATE_REPO_TOKEN"; then codeclimate < coverage/lcov.info; fi test-browser: diff --git a/appveyor.yml b/appveyor.yml index be93d797a7..859718768c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,7 @@ install: test_script: - "node --version" - "npm --version" - - "make test-appveyor" + - "make test-spec" build: "off" diff --git a/test/bin.js b/test/bin.js index e5e04d7ccc..6107ad5506 100644 --- a/test/bin.js +++ b/test/bin.js @@ -149,7 +149,3 @@ _.each(fs.readdirSync(fixtureLoc), function (binName) { }); }); }); - -after(function () { - rimraf.sync(tmpLoc); -});