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

add option to run with node args #42

Closed
bsiddiqui opened this issue Jun 30, 2014 · 5 comments
Closed

add option to run with node args #42

bsiddiqui opened this issue Jun 30, 2014 · 5 comments

Comments

@bsiddiqui
Copy link

What do you all think about adding an option that would allow tasks to be run with args?

That way, we could do something like this to run tests with the debug argument

return gulp.src(paths.testFiles)
        .pipe(plugins.mocha({
             reporter: 'spec',
             timeout: 150000,
             grep: argv.grep
             nodeArgs: ['debug']
@floatdrop
Copy link
Contributor

debug flag should be added to gulp. All other flags can be passed as option argument (if I don't miss something).

@bsiddiqui
Copy link
Author

ok sounds good

@wernight
Copy link
Contributor

wernight commented Nov 4, 2014

By "debug flag should be added to gulp" you mean it should be there (already added) or it's not yet there (to be added)? I'm also trying to debug mocha tests and sadly it's not trivial by running mocha directly (because I've CoffeeScript and it doesn't load nodejs modules).

@floatdrop
Copy link
Contributor

@wernight I don't think, that gulp have such flag now. From its usage (mocha spawns node _mocha --debug) it should be fixed by #20 — I don't see how it could be implemented without spawning process.

@wernight
Copy link
Contributor

wernight commented Nov 6, 2014

@floatdrop Thanks. Agree it looks like depending on that.

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

3 participants