Is it possible to distribute pytest test cases across multiple different computers in the same network (in a cluster)? I've been using pytest and the xdist plugin for quite some time and would like to scope out the possibility of adding an additional machine to execute some of the test cases. What would it take to do that?
It sounds far fetched, but perhaps it is possible to virtualise additional CPU cores in the operating system (Linux) which are provided by the additional machine(s) and pytest could use them as workers, just like the local CPU cores.
I found execnet
a library that is used by pytest-xdist which seems to be providing an ability to distribute tasks over the network, but it's (a) in maintenance mode and (b) there's little documentation on how to use for the purpose of distributing test cases in a cluster (I believe it's only used internal to pytest-xdist).
Perhaps I'm too focused on pytest-xdist and other pytest extensions could help.
Any pointer in the right direction is appreciated.