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

Allow worker CLI flags to be specified #1700

Merged
merged 2 commits into from
Feb 13, 2018
Merged

Conversation

novemberborn
Copy link
Member

This removes AVA's internal flags, set by fork.js and consumed by test-worker.js. Fixes #1393.

AVA now forwards arguments, provided after an -- argument terminator, to the worker process. Arguments are available from process.argv[2] onwards.


I've also removed some pkg-conf tests. These were accessing the options passed to the worker, which isn't great. They didn't seem terribly useful either, though I haven't confirmed whether they're replicating other tests. That said they don't cover explicit logic either.

Accessing the options passed to the worker isn't great. These tests
don't seem terribly useful either, though I haven't confirmed whether
they're replicating other tests. That said they don't cover explicit
logic either.
This removes AVA's internal flags, set by fork.js and consumed by
test-worker.js. Fixes #1393.

AVA now forwards arguments, provided after an `--` argument terminator,
to the worker process. Arguments are available from `process.argv[2]`
onwards.
@sindresorhus
Copy link
Member

Yay! I've wanted this many times.

@novemberborn novemberborn merged commit ac300c1 into master Feb 13, 2018
@novemberborn novemberborn deleted the specify-worker-argv branch February 13, 2018 18:03
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

Successfully merging this pull request may close these issues.

2 participants