Skip to content

Commit bd5d5c5

Browse files
committed
feat(core): move test utils to a proper package
1 parent 8370798 commit bd5d5c5

File tree

18 files changed

+25
-3
lines changed

18 files changed

+25
-3
lines changed

core/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencies {
4848

4949
// test
5050
testAnnotationProcessor project(':processor')
51+
testImplementation project(':tests')
5152

5253
testImplementation project(':repository-memory')
5354
testImplementation project(':runner-memory')

jdbc-h2/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ dependencies {
1212
testImplementation project(':core').sourceSets.test.output
1313
testImplementation project(':jdbc').sourceSets.test.output
1414
testImplementation project(':storage-local')
15+
testImplementation project(':tests')
1516
}

jdbc-mysql/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ dependencies {
1515
testImplementation project(':core').sourceSets.test.output
1616
testImplementation project(':jdbc').sourceSets.test.output
1717
testImplementation project(':storage-local')
18+
testImplementation project(':tests')
1819
}

jdbc-postgres/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ dependencies {
1515
testImplementation project(':core').sourceSets.test.output
1616
testImplementation project(':jdbc').sourceSets.test.output
1717
testImplementation project(':storage-local')
18+
testImplementation project(':tests')
1819
}

jdbc/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ dependencies {
1010
implementation("io.micronaut.sql:micronaut-jooq")
1111
implementation("io.micronaut.flyway:micronaut-flyway")
1212

13+
testImplementation project(':tests')
1314
testImplementation project(':core').sourceSets.test.output
1415
}

repository-memory/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ configurations {
44

55
dependencies {
66
testImplementation project(":core")
7-
testImplementation project(':core').sourceSets.test.output
87
implementation("io.micronaut.flyway:micronaut-flyway")
98
implementation("io.micronaut.sql:micronaut-jdbc-hikari")
109
api project(":jdbc")
1110
implementation project(":jdbc-h2")
11+
testImplementation project(":tests")
1212
}

runner-memory/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ configurations {
44

55
dependencies {
66
testImplementation project(":core")
7-
testImplementation project(':core').sourceSets.test.output
87
api project(":repository-memory")
8+
9+
10+
testImplementation project(':tests')
911
}

script/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies {
1212
implementation 'com.github.docker-java:docker-java-transport-httpclient5:3.3.6'
1313

1414
testImplementation project(':core').sourceSets.test.output
15+
testImplementation project(':tests')
1516
testImplementation project(':storage-local')
1617
testImplementation project(':repository-memory')
1718
testImplementation project(':runner-memory')

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include 'platform'
44

55
include 'cli'
66
include 'core'
7+
include 'tests'
78

89
include 'runner-memory'
910

storage-local/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ dependencies {
77
implementation project(":core")
88

99
testAnnotationProcessor project(":processor")
10-
testImplementation project(':core').sourceSets.test.output
10+
testImplementation project(':tests')
1111
}

tests/build.gradle

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
dependencies {
2+
implementation project(':core')
3+
implementation "io.micronaut:micronaut-runtime"
4+
implementation "io.micronaut.test:micronaut-test-junit5"
5+
6+
implementation "org.junit.jupiter:junit-jupiter-engine"
7+
implementation "org.junit.jupiter:junit-jupiter-engine"
8+
9+
api 'org.hamcrest:hamcrest:2.2'
10+
api 'org.hamcrest:hamcrest-library:2.2'
11+
api 'org.mockito:mockito-junit-jupiter'
12+
}

webserver/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies {
3030
testImplementation project(':storage-local')
3131
testImplementation("com.github.tomakehurst:wiremock-jre8")
3232

33+
testImplementation project(':tests')
3334
testImplementation project(':jdbc')
3435
testImplementation project(':jdbc').sourceSets.test.output
3536
testImplementation project(':jdbc-h2')

0 commit comments

Comments
 (0)