-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
type/enhancementA new idea that should be implementedA new idea that should be implemented
Milestone
Description
Q | A |
---|---|
PHPUnit version | 4.0.2 |
PHP version | 5.3.3 |
Installation Method | PHAR |
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.
vitorbrandao, qwertynik and rudiedirkx
Metadata
Metadata
Assignees
Labels
type/enhancementA new idea that should be implementedA new idea that should be implemented
Projects
Relationships
Development
Select code repository
Activity
ArturGoldyn commentedon Apr 24, 2017
I've started working on it yesterday, will finish this week.
ArturGoldyn commentedon Apr 29, 2017
For now it fails in AppVeyor. #2664
ArturGoldyn commentedon May 9, 2017
@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?
Issue #2591 - test process isolation with and without preserving glob…
Issue #2591 - allow test classes to be run in process isolation, with…
Issue #2591 - do not pass methodName if running entire test class in …
Fixed test failure (ref sebastianbergmann#2591)
Fixed test failure (ref sebastianbergmann#2591)
kaphert commentedon Oct 11, 2017
Am I correct that this feature is implemented since 6.2 but is missing in the documentation?
Search in repository on
runClassInSeparateProcess
https://github.com/sebastianbergmann/phpunit/search?q=runClassInSeparateProcess&type=Code&utf8=%E2%9C%93Fix tests for sebastianbergmann#2591 to work regardless of php.ini er…
Fix tests for sebastianbergmann#2591 to work regardless of php.ini er…
5 remaining items