You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Liam Sharp (Jira)" <ji...@apache.org> on 2022/05/20 21:12:00 UTC

[jira] [Created] (SUREFIRE-2088) Split test into chunks and select chunk to run

Liam Sharp created SUREFIRE-2088:
------------------------------------

             Summary: Split test into chunks and select chunk to run
                 Key: SUREFIRE-2088
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2088
             Project: Maven Surefire
          Issue Type: New Feature
          Components: Maven Surefire Plugin
            Reporter: Liam Sharp


A lot of CI environments (GitHub Actions/Circle CI etc) charge by the minute. So running tests across multiple boxes costs very little more than 1 box, but gives results back much quicker. 

I've love to be able to do some thing like:

mvn tests -Dsurefire.chunks=10 -Dsurefire.chunk=1

Which I could run on box 1 of 10, then 

mvn tests -Dsurefire.chunks=10 -Dsurefire.chunk=2

on box 2, etc etc.

I've seen solutions that involved code outside of maven looking at JUnit test results and producing a files to pass in -Dsurefire.excludesFile on each of the boxes. This solution requires state from previous runs and code outside of surefire. I think being able to do this completely in the surefire plugin would be a great enhancement. User could provide the chunks/chunk values, and then optionally (as a plus plus feature) some test results that give timings to allow more even test distribution across the chunks.

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)