jenkinsci / jenkinsci/parallel-test-executor-plugin

Supplying a dynamic list of tests

Open
#105 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
54
Forks
58
PR merge metrics
No merged PRs in 30d

Description

Is there a way to supply an initial list of tests or to provide tests from anything other than a pom.xml?
We gather a list of tests to run dynamically from a separate system in our pipeline. We use a custom test executor and save the results of these tests and push them to Jenkins as JUnit compatible XML.

I would like to be able to feed the separate dynamic list of required tests to the plugin, then have it look at previous build results and run times, if such a thing exists, and then build my list/batches of tests.

I'm trying to follow the blog post here: https://jenkins.io/blog/2016/06/16/parallel-test-executor-plugin/

and so far I have this basic template function which just had some pretty standard collate logic, which I've now ripped apart to try to use this plugin

def createTestDistribution(tests, batchSize) {
def splits = splitTests parallelism: [$class: 'CountDrivenParallelism', size: batchSize], generateInclusions: true
println "${splits}"

return splits.findAll{ it.includes }.collect{ it.splits }
}

Which I feel like should be more than suitable for my purposes, but I have no idea what to do with my initial array of tests.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.