dimanche 13 octobre 2019

Tests taking more time than specified timeout using maven surefire

I have all the timeout properties set in my pom.xml.

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-surefire-plugin</artifactId>
   <version>3.0.0-M3</version>
   <configuration>
      <forkedProcessTimeoutInSeconds>40s</forkedProcessTimeoutInSeconds>
   <forkedProcessExitTimeoutInSeconds>40s</forkedProcessExitTimeoutInSeconds>
      <parallelTestsTimeoutInSeconds>30s</parallelTestsTimeoutInSeconds>
<parallelTestsTimeoutForcedInSeconds>30s</parallelTestsTimeoutForcedInSeconds> 
</configuration>
</plugin>

But I still see a few tests are taking more time than 40s (one test is even taking 17 min). What could be the possible reason? How can I enforce 30s timeout with surefire?

Aucun commentaire:

Enregistrer un commentaire