change test-appveyor to test-spec and add test-clean method to clean up after tests
This commit is contained in:
parent
c4e162b8e5
commit
b5bdba46f1
10
Makefile
10
Makefile
@ -6,7 +6,7 @@ MOCHA_CMD = node_modules/mocha/bin/_mocha
|
|||||||
|
|
||||||
export NODE_ENV = test
|
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:
|
clean:
|
||||||
rm -rf coverage templates.json test/tmp dist
|
rm -rf coverage templates.json test/tmp dist
|
||||||
@ -18,19 +18,23 @@ bench:
|
|||||||
lint:
|
lint:
|
||||||
$(JSHINT_CMD) lib bin benchmark/index.js
|
$(JSHINT_CMD) lib bin benchmark/index.js
|
||||||
|
|
||||||
|
test-clean:
|
||||||
|
rm -rf test/tmp
|
||||||
|
|
||||||
test:
|
test:
|
||||||
make lint
|
make lint
|
||||||
$(MOCHA_CMD)
|
$(MOCHA_CMD)
|
||||||
|
make test-clean
|
||||||
|
|
||||||
test-cov:
|
test-cov:
|
||||||
rm -rf coverage
|
rm -rf coverage
|
||||||
node $(ISTANBUL_CMD) $(MOCHA_CMD) --
|
node $(ISTANBUL_CMD) $(MOCHA_CMD) --
|
||||||
|
|
||||||
test-appveyor:
|
test-spec:
|
||||||
node $(ISTANBUL_CMD) $(MOCHA_CMD) -- --reporter spec
|
node $(ISTANBUL_CMD) $(MOCHA_CMD) -- --reporter spec
|
||||||
|
|
||||||
test-travis:
|
test-travis:
|
||||||
make test-appveyor
|
make test-spec
|
||||||
if test -n "$$CODECLIMATE_REPO_TOKEN"; then codeclimate < coverage/lcov.info; fi
|
if test -n "$$CODECLIMATE_REPO_TOKEN"; then codeclimate < coverage/lcov.info; fi
|
||||||
|
|
||||||
test-browser:
|
test-browser:
|
||||||
|
|||||||
@ -10,7 +10,7 @@ install:
|
|||||||
test_script:
|
test_script:
|
||||||
- "node --version"
|
- "node --version"
|
||||||
- "npm --version"
|
- "npm --version"
|
||||||
- "make test-appveyor"
|
- "make test-spec"
|
||||||
|
|
||||||
build: "off"
|
build: "off"
|
||||||
|
|
||||||
|
|||||||
@ -149,7 +149,3 @@ _.each(fs.readdirSync(fixtureLoc), function (binName) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
after(function () {
|
|
||||||
rimraf.sync(tmpLoc);
|
|
||||||
});
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user