Release 1.29.1 - Support for database-less applications
This version introduces support for applications that do not have a database.
To configure the library to run database-less, it is necessary to set up the following configuration in the application.yaml
file:
application.properties:
cucumberTest.databaseless=true
or
application.yaml:
cucumberTest:
databaseless: true
If the databaseless
key is not true or missing, the library tries to instantiate the database related beans.
In some cases it is required to disable the database autoconfiguration of Spring Boot:
application.properties:
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
or
application.yaml:
spring:
autoconfigure:
exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
or as annotation:
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@SpringBootApplication
public class Application {
public static void main (String[] args) {
ApplicationContext ctx = SpringApplication.run(Application.class, args);
}
}
Please also make sure that the @ContextConfiguration
annotation does not contain the DatabaseExecutorService.class
.