tagtraeumer
tagtraeumer

Reputation: 1491

Prevent vaadin to start up in integration test

whenever I start up my integration tests (@SpringBootTest) and the application context is started, it also runs through the entire vaadin start up routine. this can take a few moments (~ 2 mins currently) until "Vaadin application has been deployed and started to the context path "/"." is displayed.

for some of my ITs I don't need vaadin, because I just test some other interfaces and I wonder if I can prevent vaadin to boot during selected tests?

Upvotes: 1

Views: 118

Answers (1)

Knoobie
Knoobie

Reputation: 2064

You have to exclude the following auto configurations of Vaadin:

  • VaadinScopeConfig
  • SpringSecurityAutoConfiguration
  • SpringBootAutoConfiguration

All three are located at com.vaadin.flow.spring.

Upvotes: 3

Related Questions