change test-appveyor to test-spec and add test-clean method to clean up after tests

This commit is contained in:
Sebastian McKenzie 2014-11-11 23:27:01 +11:00
parent c4e162b8e5
commit b5bdba46f1
3 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -10,7 +10,7 @@ install:
test_script:
- "node --version"
- "npm --version"
- "make test-appveyor"
- "make test-spec"
build: "off"

View File

@ -149,7 +149,3 @@ _.each(fs.readdirSync(fixtureLoc), function (binName) {
});
});
});
after(function () {
rimraf.sync(tmpLoc);
});