I have a need to run the same test suite in a set of different contexts, which are defined by a directory full of .json files. As a way around writing a
job entry for each file, I wanted to use
circleci tests glob "dir/*.json" | circleci tests split to break them out into separate containers/jobs. The default mode of
circleci tests split seems to be to distribute the inputs as evenly as possible across the number of containers, but what I’m looking for is exactly one build per input, which are then distributed across the available containers.
Is that possible without manually setting
parallelism: $COUNT_OF_JSON_FILES, or am I barking up the wrong tree?