Extension to execute test multiple times in parallel #647
Labels
⚙️ component: Pioneer
Issues about Pioneer own things (e.g. utils)
🚦 status: waiting for interest
📖 theme: extensions
🏗️ type: new feature
In one of our apps at work we recognized an error which somehow/sometimes happens when executing it in paralell. To be exactly it's an app with an REST-API and the error occurs sometimes, when it's called multiple times in short interval.
While trying to reproduce the error and writing a test for it a team mate asked me if I know a way to execute the same JUnit test multiple ties in parallel. But by default there is no way to do this. JUnit by itself only allows to configure execute test(classes) in parallel or as a sequence (see JUnit Userguide 2.19).
For the exact need of calling a REST-API (or other forms of webservice) we found the zerocode extension, but we don't like the way tests are configured. Before we found that, my first thought was "one could write a JUnit extension for that". And well here's the bishue :D
My idea would be an annotation like
@ParallelExecution
with an parameter for the number of parallel executions. The extension then runs the test multiple times, similar to theRetryingTest
extesion.The text was updated successfully, but these errors were encountered: