Build process updates for tests.
parent
bdb9f1f84c
commit
bdf29b1907
|
@ -25,6 +25,7 @@ var $ = require('gulp-load-plugins')();
|
|||
var del = require('del');
|
||||
var runSequence = require('run-sequence');
|
||||
var browserSync = require('browser-sync');
|
||||
var mochaPhantomJS = require('gulp-mocha-phantomjs'); // TODO: Just use aliased $. form
|
||||
var reload = browserSync.reload;
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
@ -154,8 +155,8 @@ gulp.task('scripts', function () {
|
|||
|
||||
// Run Unit Tests
|
||||
gulp.task('mocha', function () {
|
||||
return gulp.src('./test/*.js', { read: false })
|
||||
.pipe(mocha({reporter: 'list'}))
|
||||
return gulp.src('./test/index.html')
|
||||
.pipe(mochaPhantomJS({reporter: 'list'}))
|
||||
});
|
||||
|
||||
// Clean Output Directory
|
||||
|
@ -192,3 +193,5 @@ gulp.task('default', ['clean'], function (cb) {
|
|||
['jshint', 'scripts', 'images'],
|
||||
cb);
|
||||
});
|
||||
|
||||
gulp.task('test', ['jshint', 'mocha']);
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"devDependencies": {
|
||||
"apache-server-configs": "^2.7.1",
|
||||
"browser-sync": "^1.3.0",
|
||||
"chai": "^1.10.0",
|
||||
"del": "^1.1.1",
|
||||
"gulp": "^3.8.5",
|
||||
"gulp-autoprefixer": "^2.0.0",
|
||||
|
@ -22,7 +23,7 @@
|
|||
"gulp-jshint": "^1.6.3",
|
||||
"gulp-load-plugins": "^0.8.0",
|
||||
"gulp-minify-html": "^0.1.8",
|
||||
"gulp-mocha": "^2.0.0",
|
||||
"gulp-mocha-phantomjs": "^0.5.3",
|
||||
"gulp-replace": "^0.5.0",
|
||||
"gulp-sass": "^1.2.2",
|
||||
"gulp-size": "^1.0.0",
|
||||
|
@ -30,6 +31,7 @@
|
|||
"gulp-uglify": "^1.0.1",
|
||||
"gulp-useref": "^1.0.1",
|
||||
"jshint-stylish": "^1.0.0",
|
||||
"mocha": "^2.1.0",
|
||||
"opn": "^1.0.0",
|
||||
"require-dir": "^0.1.0",
|
||||
"run-sequence": "^1.0.2"
|
||||
|
|
Loading…
Reference in New Issue