Skip to content

Commit

Permalink
feat(core): move test utils to a proper package
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jun 20, 2024
1 parent 8370798 commit bd5d5c5
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies {

// test
testAnnotationProcessor project(':processor')
testImplementation project(':tests')

testImplementation project(':repository-memory')
testImplementation project(':runner-memory')
Expand Down
1 change: 1 addition & 0 deletions jdbc-h2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ dependencies {
testImplementation project(':core').sourceSets.test.output
testImplementation project(':jdbc').sourceSets.test.output
testImplementation project(':storage-local')
testImplementation project(':tests')
}
1 change: 1 addition & 0 deletions jdbc-mysql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ dependencies {
testImplementation project(':core').sourceSets.test.output
testImplementation project(':jdbc').sourceSets.test.output
testImplementation project(':storage-local')
testImplementation project(':tests')
}
1 change: 1 addition & 0 deletions jdbc-postgres/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ dependencies {
testImplementation project(':core').sourceSets.test.output
testImplementation project(':jdbc').sourceSets.test.output
testImplementation project(':storage-local')
testImplementation project(':tests')
}
1 change: 1 addition & 0 deletions jdbc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ dependencies {
implementation("io.micronaut.sql:micronaut-jooq")
implementation("io.micronaut.flyway:micronaut-flyway")

testImplementation project(':tests')
testImplementation project(':core').sourceSets.test.output
}
2 changes: 1 addition & 1 deletion repository-memory/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ configurations {

dependencies {
testImplementation project(":core")
testImplementation project(':core').sourceSets.test.output
implementation("io.micronaut.flyway:micronaut-flyway")
implementation("io.micronaut.sql:micronaut-jdbc-hikari")
api project(":jdbc")
implementation project(":jdbc-h2")
testImplementation project(":tests")
}
4 changes: 3 additions & 1 deletion runner-memory/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ configurations {

dependencies {
testImplementation project(":core")
testImplementation project(':core').sourceSets.test.output
api project(":repository-memory")


testImplementation project(':tests')
}
1 change: 1 addition & 0 deletions script/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
implementation 'com.github.docker-java:docker-java-transport-httpclient5:3.3.6'

testImplementation project(':core').sourceSets.test.output
testImplementation project(':tests')
testImplementation project(':storage-local')
testImplementation project(':repository-memory')
testImplementation project(':runner-memory')
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include 'platform'

include 'cli'
include 'core'
include 'tests'

include 'runner-memory'

Expand Down
2 changes: 1 addition & 1 deletion storage-local/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ dependencies {
implementation project(":core")

testAnnotationProcessor project(":processor")
testImplementation project(':core').sourceSets.test.output
testImplementation project(':tests')
}
12 changes: 12 additions & 0 deletions tests/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies {
implementation project(':core')
implementation "io.micronaut:micronaut-runtime"
implementation "io.micronaut.test:micronaut-test-junit5"

implementation "org.junit.jupiter:junit-jupiter-engine"
implementation "org.junit.jupiter:junit-jupiter-engine"

api 'org.hamcrest:hamcrest:2.2'
api 'org.hamcrest:hamcrest-library:2.2'
api 'org.mockito:mockito-junit-jupiter'
}
1 change: 1 addition & 0 deletions webserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {
testImplementation project(':storage-local')
testImplementation("com.github.tomakehurst:wiremock-jre8")

testImplementation project(':tests')
testImplementation project(':jdbc')
testImplementation project(':jdbc').sourceSets.test.output
testImplementation project(':jdbc-h2')
Expand Down

0 comments on commit bd5d5c5

Please sign in to comment.