Wednesday, 15 February 2012

javascript - How can I pass arbitrary parameters to my mocha tests with mochaPhantomJS & gulp? -


I call GLUP & amp; MochaPhantomJS I want to use the same test html and run different tests against it. arbitrary parameter (by which I mean not phantom auggs) how do I get my test from within javascript?

  Var GLP = expected ('gulp'); Var requires MochafontamJS = ('gulp-Mocha-Phatomaz'); Gulp.task ('testmisc', function () {return gulp.src ('testmisc.html'). Pipe (mokafentam js ());});  

But let me clarify what I want to be able to do

  gulp.task ('testmisc-1', function () { Return gulp .src ('testmisc.html') .pip (mochfontam js ({j: 1})}}; Gulp.task ('testmisc-2', function () {return gulp.src ('testmisc.html' ). Pipe (mochaPhantomJS ({whatever: 2})}};  


No comments:

Post a Comment