We just need to tell it how to use them. This is where the maven-failsafe plugin comes in. We are going to use it to con gure our parallel execution environment for our tests. This con guration will be applied to TestNG if you have TestNG as a dependency; you don't need to do anything special.
In our case, we are interested in the con guration settings of parallel and threadCount. We have set parallel to methods. This will search through our project for methods that have the @Test annotation and will collect them all into a great big pool of tests. The failsafe plugin will then take tests out of this pool and run them. The number of tests that will be run concurrently will depend on how many threads are available. We will use the threadCount property to control this.
Comments
0 comments
Please sign in to leave a comment.