vendredi 1 juillet 2016

how to run spring-boot integration tests with gradle on multiple servers

i have some integration tests for my spring boot application. based on dependencies (and classpath jars) spring boot chooses a server to start: (tomcat is there is only spring-boot-starter-web, undertow if there is spring-boot-starter-undertow or jetty if there is spring-boot-starter-jetty)

i'm writing a filter that is supposed to work on many different servers. i don't have compile dependency on any server but i would like to test my code on many servers. how can i do it?

for sure one way is to make gradle script set dependencies based on some env variable and then just call gradle test a few times with different env variable values. is there any simpler way, so i can test everything at once? like starting the servers programmatically in tests? or using some gradle/spring plugin?

Aucun commentaire:

Enregistrer un commentaire