{"repo":"reibitto/sbt-test-shards","free":true,"listed":false,"github":"https://github.com/reibitto/sbt-test-shards","clone":"git clone https://github.com/reibitto/sbt-test-shards.git","description":"An sbt plugin for splitting tests across multiple shards to speed up tests.","language":"Scala","stars":27,"topics":["ci","github-actions","jenkins","sbt","sbt-plugin","scala","testing"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"sbt test shards An sbt plugin for splitting tests across multiple shards to speed up tests. What is it? Some projects have tests that take an incredibly long time. In such cases, CI turnaround time can be frustratingly long. For example, say your tests take 45 minutes to complete in CI. What you can instead do is split and run those tests across multiple nodes to speed up the entire process. So what was once 45 minutes could turn into 15 minutes if you distribute them across 3 nodes. sbt-test-shards aims to make setting up this workflow a bit easier for you. Installation Add the following to project/plugins.sbt : Configuration Out of the box, the only thing that you must do is set the testShard and testShardCount settings to the appropriate values. testShardCount identifies the number of shards/nodes your tests will be split into. Let's say 3 for this example. testShard on the other hand identifies which shard is running the tests. So if we follow the example of 3 nodes, testShard should be set to either 0, 1, or 2 (indexing is zero-based). By default, testShard and testShardCount will look for the JVM properties called test.shard and test.shard.count respectively. If none are found, it'll fallback to the TEST SHARD and TEST SHARD COUNT environment variables. Otherwise they will default to testShard=0 and testShardCount=1 (which is essentially the same as not doing any sharding at all). If you want to use your own values, you can configure the sbt settings yourself: You may a","default_branch":null,"files":null,"tree":[],"storefront":"/r/reibitto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/reibitto/sbt-test-shards/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}