diff --git a/build.gradle.kts b/build.gradle.kts index 5e3766a..814c6ff 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,14 +29,13 @@ repositories { } dependencies { - implementation("org.zeroturnaround:zt-exec:1.12") - implementation("org.apache.commons:commons-lang3:3.17.0") + implementation("org.zeroturnaround:zt-exec:1.12") + 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.xerial:sqlite-jdbc") - implementation("org.springframework.boot:spring-boot-starter-data-jpa") - implementation("org.hibernate.orm:hibernate-community-dialects") + implementation("org.springframework.boot:spring-boot-starter-jdbc") + implementation("org.xerial:sqlite-jdbc") + implementation("org.springframework.boot:spring-boot-starter-data-jpa") + implementation("org.hibernate.orm:hibernate-community-dialects") implementation("org.springframework.boot:spring-boot-starter-security") implementation("org.springframework.boot:spring-boot-starter-web") @@ -54,6 +53,8 @@ dependencies { } tasks.withType { - useJUnitPlatform() + useJUnitPlatform() + + systemProperty("spring.profiles.active", "test") testLogging.showStandardStreams = true } diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties new file mode 100644 index 0000000..473dc02 --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1,2 @@ +#TODO: Use flyway for db setup +hibernate.hbm2ddl.auto=create-drop \ No newline at end of file