Can I make JUnit more verbose?

后端 未结 10 2084
再見小時候
再見小時候 2021-01-03 21:52

I\'d like to have it yell hooray whenever an assert statement succeeds, or at the very least have it display the number of successful assert statements that were encountered

10条回答
  •  长发绾君心
    2021-01-03 22:24

    I don't think, it's the goal of JUnit to count matched assertions or print out more verbose information. If tests are atomic, you'll get most information in there. So I would review my tests.

    You're also able to establish a LogFile in JUnit. It's possible, but it will decrease test execution performance...

提交回复
热议问题