Use grunt-exec for the tests.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Tue, 18 Feb 2014 15:53:56 +0000 (17:53 +0200)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Tue, 18 Feb 2014 15:53:56 +0000 (17:53 +0200)
Gruntfile.js
package.json

index 2dbd596..b84d6fe 100644 (file)
@@ -28,6 +28,12 @@ module.exports = function(grunt) {
       }
     },
 
+    exec: {
+      test: {
+        command: 'node ./test.js'
+      }
+    },
+
     concat: {
       options: {
         banner: '<%= banner %>'
@@ -72,7 +78,8 @@ module.exports = function(grunt) {
 
   grunt.registerTask('test', [
     'concat',
-    'jshint'
+    'jshint',
+    'exec'
   ]);
 
   grunt.registerTask('default', 'test');
index fddb72d..6e6ed00 100644 (file)
@@ -35,7 +35,7 @@
     "test": "tests"
   },
   "scripts": {
-    "test": "grunt test && node test.js"
+    "test": "grunt test"
   },
   "devDependencies": {
     "grunt": "0.4.x",
@@ -43,6 +43,7 @@
     "grunt-contrib-jshint": "0.8.x",
     "grunt-contrib-qunit": "0.4.x",
     "grunt-contrib-uglify": "0.3.x",
+    "grunt-exec": "0.4.x",
     "load-grunt-tasks": "0.3.x",
     "qunit": "0.5.x",
     "time-grunt": "0.2.x"