Execute tests in alphabetical order

Until now the order of the execution of the tests depended on the
order of the files returned by the filesystem. This could lead to
different test results in different systems for the same codebase.

Ideally tests should be completely isolated and not depend on the
order of execution whatsoever. Nevertheless, in many tests some data
is left behind in the database, affecting the behavior of other tests.

With the alphabetical order, these order problems will arise the same
in all machines.
This commit is contained in:
Oscar Gonzalez Fernandez 2013-10-10 13:15:33 +02:00
parent 0c33a9431c
commit 23b1a76d15

View file

@ -958,6 +958,15 @@
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
<!-- =========================================================== -->
<!-- Jetty configuration -->
<plugin>