javascript - In Cucumber.js is it possible to list all of the available steps? -


other versions of cucumber, possible dump list of steps. not supported in javascript. example:

cucumber -f usage --dry-run 

if can access world object or cucumber, think there might way list of regexps / functions cucumber uses parse .feature files. know inner workings of javascript version point me in right direction?

i found easier write own, require of steps outputs them found.

var container = {     myfn: function(type, regexp, fn) {       console.log(type +' '+regexp.tostring());     },      given: function(regexp, fn) {       this.myfn('given', regexp, fn);     },     : function(regexp, fn) {       this.myfn('then', regexp, fn);     },     when : function(regexp, fn) {       this.myfn('when', regexp, fn);     }   };  var steps = require('./stepdefinitions'); steps.apply(container);   // stepdefinitions module.exports = function() {    this.given(/^i run cucumber protractor$/, function(next) {     next();   }); }; 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -