previousnext / phpunit-finder

PHP utility for finding PHPUnit test files.
GNU General Public License v2.0
10 stars 10 forks source link

Some help with pipeline #17

Open dafeder opened 2 months ago

dafeder commented 2 months ago

Hi, I've been trying a bunch of different methods to split my phpunit tests by timing data on CircleCI. I've gotten pretty close; am able to use this script to get the full list of test files and use circleci tests split to split them by historical timing data... but then I just have a list of test files. I can't figure out a way to just make PHPUnit run through a list of filenames I pipe to it; it wants a filter based on class names or else a single filename. So, I'm wondering how people are using this in working pipelines on CircleCI or similar parallelized CI services...

Do you generate a new phpunit.xml file on the fly for each parallel node? Do you somehow grab the qualified class names from the files and create a giant filter? Am I missing some way to just pass my list of files to PHPUnit?

Maybe this only works when you use the circleci test command, but that's not really available to me because I'm running phpunit directly from my own container (I build the project with ddev on each run).