Tuesday, November 12, 2013

Running tests from Grunt doesn't seem too tough to do.

"Up top" we have...

mocha: {
   test: {
      src: ['whatever.html'],
      options: {
         log: true,
         reporter: 'Dot',
         run: false
      }
   }
},

 
 

Farther down...

grunt.loadNpmTasks('grunt-mocha');

 
 

Farther down yet is a task to be called in a target:

grunt.registerTask('test', 'mocha');

No comments:

Post a Comment