From 55710fa035718de4a3182c87a7f2b30f3e1cc1f2 Mon Sep 17 00:00:00 2001
From: Lucas Gabriel Lima <lgl15@inf.ufpr.br>
Date: Thu, 1 Sep 2016 09:50:01 -0300
Subject: [PATCH] add gulp-mocha library and task for testing

---
 gulpfile.js  | 12 ++++++++++++
 package.json |  1 +
 2 files changed, 13 insertions(+)

diff --git a/gulpfile.js b/gulpfile.js
index 99dcbc68..06a87e24 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,5 +1,17 @@
 var gulp = require('gulp');
+var mocha = require('gulp-mocha');
 
 gulp.task('default', function() {
 
 });
+
+gulp.task('test', function(){
+  gulp.src('test/test.js', {read: false})
+    .pipe(mocha())
+    .once('error', function(){
+      process.exit(1);
+    })
+    .once('end', function(){
+      process.exit();
+    })
+});
diff --git a/package.json b/package.json
index 04f97575..3e11046c 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
     "chai": "^3.5.0",
     "chai-http": "^3.0.0",
     "gulp": "^3.9.1",
+    "gulp-mocha": "^3.0.1",
     "mocha": "^2.5.3"
   }
 }
-- 
GitLab