我有几个Booleans
我想测试,比如
assert(g8Exists, equalTo(true)) &&
assert(projectExists, equalTo(true)) &&
assert(testenvExists, equalTo(true)) ...
如果失败了,我得到的只是:
false did not satisfy equalTo(true)
不知道哪条线失败了。有没有办法可以添加描述性断言消息。例如:
assert(g8Exists, equalTo(true), "g8Exists")
或首选:
assertTrue(g8Exists, "g8Exists")
会导致
false did not satisfy equalTo(true) - g8Exists
还是有更好的测试方法Booleans
?