Add testing section to README

This commit is contained in:
Daniel Imms
2018-04-13 10:49:02 -07:00
parent b594641b26
commit 7e8dd9647f
3 changed files with 13 additions and 3 deletions
+3 -3
View File
@@ -163,10 +163,10 @@ gulp.task('mocha-coverage', ['instrument-test'], function () {
});
/**
* Run single test file by file name(without file extension). Example of the command:
* gulp mocha-test --test InputHandler.test
* Run single test suite (file) by file name (without file extension). Example of the command:
* gulp mocha-suite --test InputHandler.test
*/
gulp.task('mocha-test', [], function () {
gulp.task('mocha-suite', [], function () {
let testName = util.env.test;
util.log("Run test by Name: " + testName);
return gulp.src([`${outDir}/${testName}.js`, `${outDir}/**/${testName}.js`], {read: false})