Skip to content

Support runOrder=balanced with forkCount>1 (without parallel=classes) #3396

Description

@joshiste

Today runOrder=balanced looks only at threadCount (set by parallel or -DthreadCount) when it sorts the test classes. If you use forkCount>1 but not parallel=classes, then threadCount is 1. In that case balanced only puts the slowest classes first. It does not use the number of forks that run the tests.

I would like balanced to also use forkCount. The number of parallel test runners is forkCount × threadCount. So balanced should split the classes over that many runners. Then balanced also helps when you use forkCount>1 without parallel=classes.

Idea for the code: send forkCount to the provider with a new forkcount property (the same way threadcount is sent today), and use threadCount × forkCount as the number of buckets in DefaultRunOrderCalculator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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