mercredi 1 février 2017

Maven surefire suiteXmlFile possibilities

For the moment I have the possibility to run multiple tests on maven with the surefire plugin like this :

mvn clean test -Dsurefire.suiteXmlFiles=test1.xml,test2.xml,test3.xml,test4.xml,...

It is nice but I would like to know if it's possible to improve it by having the possibility of reading a file that contains these test.xml

I would like to do this to improve readability since the path to these test can be pretty long.

So instead of that I would like to do something like this :

mvn clean test -Dsurefire.suiteXmlFiles=file.txt

and inside my file.txt

path/to/my/test1.xml,path/to/my/test2.xml,path/to/my/test3.xml,...

Aucun commentaire:

Enregistrer un commentaire