Skip to content

Commit 6b54035

Browse files
loganlinnmikeproeng37
authored andcommitted
refac: Move JUnit config for ExhaustiveTest to core-api (#261)
1 parent fb64500 commit 6b54035

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,11 @@ subprojects {
8484
}
8585

8686
test {
87-
useJUnit {
88-
excludeCategories 'com.optimizely.ab.categories.ExhaustiveTest'
89-
}
90-
9187
testLogging {
9288
showStandardStreams = false
9389
}
9490
}
9591

96-
task exhaustiveTest(type: Test) {
97-
useJUnit {
98-
includeCategories 'com.optimizely.ab.categories.ExhaustiveTest'
99-
}
100-
}
101-
10292
jmh {
10393
duplicateClassesStrategy = 'warn'
10494
}

core-api/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ dependencies {
1212
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion, optional
1313
}
1414

15+
test {
16+
useJUnit {
17+
excludeCategories 'com.optimizely.ab.categories.ExhaustiveTest'
18+
}
19+
}
20+
21+
task exhaustiveTest(type: Test) {
22+
useJUnit {
23+
includeCategories 'com.optimizely.ab.categories.ExhaustiveTest'
24+
}
25+
}
26+
1527
task generateVersionFile {
1628
// add the build version information into a file that'll go into the distribution
1729
ext.buildVersion = new File(projectDir, "src/main/resources/optimizely-build-version")

core-httpclient-impl/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
dependencies {
22
compile project(':core-api')
3-
testCompile project(':core-api').sourceSets.test.output
43

54
compileOnly group: 'com.google.code.gson', name: 'gson', version: gsonVersion
65

0 commit comments

Comments
 (0)