Skip to content

Some help with pipeline #17

@dafeder

Description

@dafeder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions