Skip to content

Commit 6f37a1a

Browse files
dwijnandSethTisue
authored andcommitted
Add detail to "BinaryCompaTest"
1 parent 17f84c5 commit 6f37a1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

binary-compat/test/src/test/scala/BinaryCompaTest.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class BinaryCompaTest {
2323
Config.setup("foo", Array(oldClasspath, newClasspath))
2424
val mima = new MiMaLib(Config.baseClassPath)
2525
val allProblems = mima.collectProblems(oldClasspath, newClasspath)
26-
Assert.assertEquals(Nil, allProblems)
26+
val msg = allProblems.iterator
27+
.map(_.description("new"))
28+
.mkString(s"The following ${allProblems.size} problems were reported but not expected:\n - ", "\n - ", "\n")
29+
Assert.assertEquals(msg, Nil, allProblems)
2730
}
2831
}

0 commit comments

Comments
 (0)