From 558ac32f44c6c02ba50e879f846899da4766316a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 21 May 2014 05:04:25 -0400 Subject: [PATCH] feature(test) add util --- gulpfile.js | 6 ++++++ package.json | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 3625cb7f..c4e05d1c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,6 +6,8 @@ recess = require('gulp-recess'), concat = require('gulp-concat'), stylestats = require('gulp-stylestats'), + mocha = require('gulp-mocha'), + test = require('./test/test.js'), Util = require('./lib/util'), fs = require('fs'), @@ -44,6 +46,10 @@ gulp.task('test', function() { test.check(); + + gulp.src('test/lib/util.js') + .pipe(mocha({reporter: 'progress'})) + .on('error', onError); }); gulp.task('changelog', function() { diff --git a/package.json b/package.json index 545d9e46..ba577a6e 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,10 @@ "gulp": "3.6.x", "gulp-concat": "2.2.x", "gulp-jshint": "1.6.x", + "gulp-mocha": "^0.4.1", "gulp-recess": "0.3.x", - "gulp-stylestats": "0.2.x" + "gulp-stylestats": "0.2.x", + "should": "^3.3.1" }, "license": "MIT", "engines": {