gruntjs - Testing JavaScript using grunt -


I will run tests against javascript files via the Kiosk framework.

Just need a simple example, do so, there are dependencies of the target file ( /test/filename.js ) on another file.

Actually you have to use a rash execution command.

Here is the explanation:

In simple words, what you should do for this specific requirement:

  module.exports = function (grunt) { Grunt.initConfig ({execute: {simple_target: {// execute javascript files in a node child_process src: ['filename.js']}}}) Grunt.loadNpmTasks ('grunt-execute'); Grunt.registerTask ('Default', ['Executed']); } "Blanket": "~ 0.4.4", "blanket-execution": "~ 0.1.5"   

and also,

  Code>  

should be included in the package. Jason, then just install NPM

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -