[Tests] Show all the missing artifacts in the ArtifactsTest instead of asserting one by one
This commit is contained in:
@@ -59,15 +59,17 @@ class ArtifactsTest {
|
|||||||
}.asStream()
|
}.asStream()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@TestFactory
|
||||||
fun allExpectedPomsPresentInActual() {
|
fun allExpectedPomsPresentInActual(): Stream<DynamicTest> {
|
||||||
val publishedPoms = findActualPoms()
|
val publishedPoms = findActualPoms()
|
||||||
.map { it.toExpectedPath() }
|
.map { it.toExpectedPath() }
|
||||||
.filter { "${it.parent.fileName}" !in excludedProjects }.toSet()
|
.filter { "${it.parent.fileName}" !in excludedProjects }.toSet()
|
||||||
|
|
||||||
findExpectedPoms().forEach { expected ->
|
return findExpectedPoms().map { expected ->
|
||||||
assertTrue(expected in publishedPoms, "Missing actual pom for expected pom: $expected")
|
DynamicTest.dynamicTest(expected.fileName.toString()) {
|
||||||
}
|
assertTrue(expected in publishedPoms, "Missing actual pom for expected pom: $expected")
|
||||||
|
}
|
||||||
|
}.asStream()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun findActualPoms() = Files.find(
|
private fun findActualPoms() = Files.find(
|
||||||
|
|||||||
Reference in New Issue
Block a user