vowsjs / kyuri

A node.js cucumber implementation with a few extra asynchronous keywords. supports 160+ languages and exports to VowsJS stubs
http://prenup.nodejitsu.com
197 stars 19 forks source link

Fixes bin/kyuri failing to exit when testing something with a keep-alive loop. #24

Open capnregex opened 12 years ago

capnregex commented 12 years ago

If there is another nextTick loop in what you are testing, kyuri fails to exit.

adding an else process.exit fixes the problem.

indexzero commented 12 years ago

@pacovell Can you take a look at this? At first glance, it seems like it would be nice to have a --timeout option which is checked here. So that we can wait for slower tests to exit w/o prematurely exiting on others.

capnregex commented 12 years ago

It looked like the complete flag was not set to true until all of the tests had completed, or an error was caught.