facile-it / paraunit

Run PHPUnit tests in parallel
https://engineering.facile.it/paraunit/
Apache License 2.0
140 stars 15 forks source link

[0.8] Relative paths in PHPUnit config are broken #88

Closed Jean85 closed 7 years ago

Jean85 commented 7 years ago

Since 0.8, the PHPUnit config gets duplicated to add the test listener. This breaks the bootstrap option, that can contain a relative path.

Other options can contain relative paths, so maybe it's better to not change the directory in which the config gets rewritten.

Jean85 commented 7 years ago

The issue lies with Symfony here: KernelTestCase::getPhpUnitXmlDir()

It tries to guess the kernel location starting from the same dir of the PHPUnit config file. Since Paraunit is rewriting it in the temp dir, this is an issue. The only workaround I can think of is writing the copy in the same dir, and deleting it at the end of the execution.