What's the actual use of 'fail' in JUnit test case?

后端 未结 8 1126
长情又很酷
长情又很酷 2021-01-30 15:31

What\'s the actual use of \'fail\' in JUnit test case?

8条回答
  •  深忆病人
    2021-01-30 15:54

    I, for example, use fail() to indicate tests that are not yet finished (it happens); otherwise, they would show as successful.

    This is perhaps due to the fact that I am unaware of some sort of incomplete() functionality, which exists in NUnit.

提交回复
热议问题