orchestral / testbench

Laravel Testing Helper for Packages Development
https://packages.tools/testbench
MIT License
2.11k stars 136 forks source link

phpunit.xml file does not exist in testbench-core #362

Closed karinarastsinskagia closed 1 year ago

karinarastsinskagia commented 1 year ago

Description:

Hello,

I am using the package:test command in order to execute my phpunit tests in parallel mode and everything worked well until the latest updates. Particularly, after I updated the latest versions of orchestral/testbench and nunomaduro/collision packages, I have started to receive the following error message :

Screenshot from 2023-05-05 14-07-48

After some research, I noticed that the recent nunomaduro/collision changes, included some extra functionality in terms of caching which requires loading the proper phpunit.xml file (https://github.com/nunomaduro/collision/commit/6fc0c4786dd9db20dd7ea355f34243448e6f1707). However, in this step, from theorchestral/testbench end, the phpunit.xml file does not exist and the command fails.

Steps To Reproduce:

So, my question is, if you are already working on this issue or if it's possible to deal with it by including a default phpunit.xml file or copy the one, before the parent class executes.

For example, one solution might be the following :

Screenshot from 2023-05-05 14-20-38

Thank you

crynobone commented 1 year ago

This should be fixed with the upcoming release of collision.