Change DLL-behaviour for test

This commit is contained in:
Torge Hamann 2024-11-17 20:34:43 +01:00
parent 59949e067b
commit 60b1f0e756
2 changed files with 11 additions and 8 deletions

View file

@ -29,14 +29,13 @@ repositories {
} }
dependencies { dependencies {
implementation("org.zeroturnaround:zt-exec:1.12") implementation("org.zeroturnaround:zt-exec:1.12")
implementation("org.apache.commons:commons-lang3:3.17.0") implementation("org.apache.commons:commons-lang3:3.17.0")implementation("org.springframework.boot:spring-boot-autoconfigure")
implementation("org.springframework.boot:spring-boot-autoconfigure") implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("org.springframework.boot:spring-boot-starter-jdbc") implementation("org.xerial:sqlite-jdbc")
implementation("org.xerial:sqlite-jdbc") implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("org.hibernate.orm:hibernate-community-dialects")
implementation("org.hibernate.orm:hibernate-community-dialects")
implementation("org.springframework.boot:spring-boot-starter-security") implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-web")
@ -54,6 +53,8 @@ dependencies {
} }
tasks.withType<Test> { tasks.withType<Test> {
useJUnitPlatform() useJUnitPlatform()
systemProperty("spring.profiles.active", "test")
testLogging.showStandardStreams = true testLogging.showStandardStreams = true
} }

View file

@ -0,0 +1,2 @@
#TODO: Use flyway for db setup
hibernate.hbm2ddl.auto=create-drop