Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some help with pipeline #17

Open
dafeder opened this issue May 8, 2024 · 0 comments
Open

Some help with pipeline #17

dafeder opened this issue May 8, 2024 · 0 comments

Comments

@dafeder
Copy link

dafeder commented May 8, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant