-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 a class in separate process. #2591
Comments
I've started working on it yesterday, will finish this week. |
For now it fails in AppVeyor. #2664 |
@sebastianbergmann I did it, and fixed that failing merge request, do you consider merging my branch to some release? Or does it need any alterations? |
… all test methods running in the same process.
Am I correct that this feature is implemented since 6.2 but is missing in the documentation? Search in repository on |
…ror settings The log_errors and display_errors settings were interfering with the actual test output, causing the tests to fail under some circumstances (i.e. default php.ini values).
…ror settings The log_errors and display_errors settings were interfering with the actual test output, causing the tests to fail under some circumstances (i.e. default php.ini values).
The log_errors and display_errors settings were interfering with the actual test output, causing the tests to fail under some circumstances (i.e. default php.ini values).
We can run individual tests in separate processes, but we cannot run a test class in a separate process.
It would be nice to have @runTestsClassInSeparateProcess, not only @runTestsInSeparateProcesses
The goal is to run setUpBeforeClass once (it takes a few seconds), then perform all tests in separate process, and then at the end lose all global variable changes that occured.
Unfortunately some of our objects collide and don't allow us to pass to the next test, but they work with --process-isolation parameter perfectly. Therefore we would like to have a @runTestsClassInSeparateProcess annotation to run just few classes in separate process, but use this one process for all tests in this class.
The text was updated successfully, but these errors were encountered: