Is it possible to run a test suite of phpUnit tests in the same process, but identify specific tests to be run in their own processes?
Normally I use
@runTestsInSeparateProcesses
@preserveGlobalState disabled
for an entire test suite, but I only need a single method to be ran separately, and I'd like the speed increase of having the rest run in a single process.
Thanks
As you can see in PHPUnit manual you can use the @runInSeparateProcess
tag:
class MyTest extends PHPUnit_Framework_TestCase
{
/**
* @runInSeparateProcess
*/
public function testInSeparateProcess()
{
// ...
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With