Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Dec 09, 2019 09:06


When enabling Android test sharding by setting the "shard" parameter to "true" in the Perfecto Gradle plugin configuration (see Android configuration parameters for the Gradle Plugin) the tests will be executed in the following way:

  • The number of shards (test groups) will be equal to the number of devices specified in the configuration file.
  • The number of tests will be divided by the number of shards and each shard will be executed on a different device.

Examples:

  • If you specified 10 tests and configured sharding on 10 devices then each device will run one test - the first test will be executed on the first device, the second test on the second device and so on.
  • If you specified 10 tests and configured sharding on 5 devices then each device will run two tests - the first two tests will be executed on the first device, the third and fourth test will be executed on the second device and so on.

For more information on sharding, you may refer to the official AndroidJUnitRunner documentation.