name.remal.randomize-test-classes

Plugin class: name.remal.gradle_plugins.plugins.testing.RandomizeTestClassesPlugin

plugins {
    id 'name.remal.randomize-test-classes' version '1.5.0'
}
plugins {
    id("name.remal.randomize-test-classes") version "1.5.0"
}

 

This plugin randomizes test classes order on every Test task execution. At the same time it doesn't break those tasks cacheability.

The plugin creates testClassesRandomization extension of type RandomizeTestClassesExtension to control the randomization.

testClassesRandomization {
    seed = 123
}

The plugin uses the same random seed for all Test tasks. It allows to easily reproduce tests execution order.

 

name.remal.gradle_plugins.plugins.testing.RandomizeTestClassesExtension

Property Type Description
enabled boolean Is randomization enabled. Default value: true.
seed long Initial random seed. By default a random value is used. If you want to reproduce an order, set this property to a value used to generate that order.