-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ability to run test files in the same process #1332
Comments
This would still run each test in parallel, right? |
Yes. |
@novemberborn yes parallel, but not in separate processes, because |
It does not. That's the whole point of this issue, to not spawn. |
Just FYI, the |
Prompted by #1631 it might be interesting to still start workers, but reuse them for different test files. We'd use |
I’ve experimented a little bit with implementing sandboxing in ava via the I’ve also struggled a little bit with the way how the runner instance is loaded in each test file (i.e. |
@lo1tuma @sindresorhus Is it possible to pack all selected files into a single bundle (webpack maybe) and then execute that file? |
TBH I’m not even sure if it is worth to have the sandboxing feature at all. It is quite hard to implement and I assume that it would also have a negative impact regarding performance. |
In may case we are using ava for acceptance testing and this feature will make it easy for us to make full use of limited resources. |
Yea we can punt on that for now. |
Closing in favor of #1428. |
Am I right, or hasn’t this feature never be implemented although #1428 is marked as done? I would love to see an option to disable threadding and sandboxing completely as it slows down the test run significantly. |
Proper isolation between test files is a core feature. Worker threads have sped this up greatly compared to child processes. We're not looking to implement this issue as originally proposed. |
Split from #1322.
It could be a global option that when turned on would run the test files in the same process in a new script context using the
vm
module instead of a child process.The text was updated successfully, but these errors were encountered: