eager-librarian-15922
12/19/2018, 12:34 PMhundreds-father-404
12/19/2018, 4:17 PMtest folder1 folder2...
and the second shard do test folderk...foldern
. One limitation of this approach is that you might forget to add new folders to CI, unless they’re already a sub directory of one of the targets you have
Finally, you could implement a mechanism to automatically shuffle your tests. Check in Pants’ github the file ci.sh
for how we do this with our repository. (I’m afk, sorry I can’t grab the link for you)happy-kitchen-89482
12/19/2018, 5:28 PM--test-shard
flags, see the output of pants help test
for details.happy-kitchen-89482
12/19/2018, 5:30 PM./pants test --test-pytest-test-shard=0/10 src/python::
to run the first of 10 shards, and similarly for junit.eager-librarian-15922
12/20/2018, 10:40 AM