Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can cli-easy wait for async data to test with? #2

Open
orlin opened this issue May 27, 2012 · 0 comments
Open

can cli-easy wait for async data to test with? #2

orlin opened this issue May 27, 2012 · 0 comments

Comments

@orlin
Copy link

orlin commented May 27, 2012

Sometimes I need to match against async data. For example coming from a child_process.exec but perhaps also an http request or whatever. CLIeasy likes to be at the top level so vows can find it. When nested in a callback, it produces: "Could not find any tests to run".

Here is where the data comes from. I can't nest the module.exports either, so I ended up using a stream.

Could there be any kind of before hook, or a way to make cli-easy listen for the "ready" event to fire -- before running the tests?

Perhaps another option could be synchronize - there is a Mocha example at the bottom, I don't quite see how to use that with Vows...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant