These are chat archives for mojotech/pioneer

21st
Aug 2014
Josh
@joshtombs
Aug 21 2014 13:11
@samccone how do you use a local version of cucumber for pioneer?
Sam Saccone
@samccone
Aug 21 2014 13:12
npm link
Josh
@joshtombs
Aug 21 2014 13:12
dfdsg
Sam Saccone
@samccone
Aug 21 2014 13:12
hahah
Josh
@joshtombs
Aug 21 2014 13:12
npm link cucumber ?
is the duration a cucumber thing or just a pioneer thing?
because latest version of cucumber doesnt do it
Sam Saccone
@samccone
Aug 21 2014 13:16
pioneer
i think you added it :)
Josh
@joshtombs
Aug 21 2014 13:16
oh okay
Josh
@joshtombs
Aug 21 2014 16:47
you get that website stuff yet?
Sam Saccone
@samccone
Aug 21 2014 16:47
yeah
Josh
@joshtombs
Aug 21 2014 17:41
@samccone how did you use the cucumber bin function to log what you wanted
i got everything in place in terms of sync but its still exiting code 0
cucumber.Cli(specs).run(function (succeeded) {
  console.log('---------------------------')
  console.log(succeeded)
  console.log('---------------------------')
  var code = succeeded ? 0 : 1;

  process.on('exit', function () {
    var testTime = moment.duration(new Date().getTime() - timeStart)._data
    console.log("Duration " + "(" + testTime.minutes + "m:" + testTime.seconds + "s:" + testTime.milliseconds + "ms)")
    process.exit(code);
  });

  var timeoutId = setTimeout(function () {
    console.error('Cucumber process timed out after waiting 60 seconds for the node.js event loop to empty.  There may be a resource leak.  Have all resources like database connections and network connections been closed properly?');
    process.exit(code);
  }, 60 * 1000);

  if (timeoutId.unref) {
    timeoutId.unref();
  }
  else {
    clearTimeout(timeoutId);
  }
});
thats not even logging :(
definitely close though
like im pretty sure you had a function in there that im missing