-
Notifications
You must be signed in to change notification settings - Fork 310
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
Run multiple intern.run()
with API
#919
Comments
The current plan for running Intern in parallel is to use multiple node processes. Intern would start up a separate node process to run tests, much like it starts a browser to run tests now. This will allow for the same logic to manage tests in Node and browsers, and will provide isolation between parallel Node sessions. |
A related issue is that you cannot run parallel functional tests at all. |
@jason0x43 any news? :/ |
It's high in the queue, but I haven't had time to get to it yet. In the meantime you might consider writing a custom reporter that will output test results in a structured format, like JSON. That will make result aggregation simpler. |
Bumping this one up as I've recently run into a similar issue. I am using the same technique as @AlonMiz to usable effect, though it is kludgy as suggested. |
The Problem
When trying to run intern more than one or even the same intern more than once, using
intern.run()
, after re-configuring it, it will shout that it cannot run more than once + due to intern using global scope - cannot run more than 1 in parallel.This behaviour is restricting the user from running and handling intern as he wishes (in our case, make a grid of intern runners who run parallelly)
Possible solution
When removing the restriction, and maybe make a cleanup (also using other, more isolated scopes for resources) of resources after the
intern.run()
we could run multiple interns parallelly, and we'll have more freedom and flexability with intern's apiSteps to reproduce (for bugs)
Just try to run the same suites twice, either parallelly, or in series.
Environment
Intern version: 4.2.0
The text was updated successfully, but these errors were encountered: