我正在使用 groovy、assertj、junit 和 gradle。我有一个包含这样断言的测试
assertThat(actualLongList).isEqualTo(expectedLongList)
当我运行gradle test
并且这些列表不相等时,它会生成一个带有异常的测试报告
org.junit.ComparisonFailure: expected:<...ent2",
"element3",
"element4",
"element5]"]> but was:<...ent2",
"element4,
"element5",
"element6]"]>
我可以以某种方式配置异常输出格式,以便完全输出两个列表吗?
org.junit.ComparisonFailure: expected:
<["element1",
"element2",
"element3",
"element3",
"element4",]> but was:,
<["element1",
"element2",
"element4",
"element5",
"element6",]>