Skip to content

Commit

Permalink
Use jOOX to test XML reports
Browse files Browse the repository at this point in the history
Instead of asserting string subsequences, we select elements and
attributes in the DOM via jOOX which allows for much more expressive
assertions.
  • Loading branch information
marcphilipp committed Feb 1, 2021
1 parent 2b7d5b1 commit b394ef0
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 278 deletions.
1 change: 1 addition & 0 deletions dependencies/dependencies.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ dependencies {
api("org.mockito:mockito-junit-jupiter:${versions["mockito"]}")
api("biz.aQute.bnd:biz.aQute.bndlib:${versions["bnd"]}")
api("org.spockframework:spock-core:${versions["spock"]}")
api("org.jooq:joox:${versions["joox"]}")
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ log4j.version=2.13.3
mockito.version=3.5.0
slf4j.version=1.7.30
spock.version=1.3-groovy-2.5
joox.version=1.6.2

# Tools
checkstyle.version=8.31
Expand Down
1 change: 1 addition & 0 deletions platform-tests/platform-tests.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies {
testImplementation(testFixtures(project(":junit-platform-launcher")))
testImplementation(project(":junit-jupiter-engine"))
testImplementation("org.apiguardian:apiguardian-api")
testImplementation("org.jooq:joox")

// --- Test run-time dependencies ---------------------------------------------
testRuntimeOnly(project(":junit-vintage-engine"))
Expand Down
Loading

0 comments on commit b394ef0

Please sign in to comment.