How make JUnit print assertion results

前端 未结 4 859
说谎
说谎 2021-02-01 03:48

How can I get the results of my JUnit assertions to be printed [to standard output]?

I have some tests like this:

@Test
public void test01()
{
    Position         


        
4条回答
  •  广开言路
    2021-02-01 04:14

    One last resort option is to pair each assert with a corresponding System.out.println, though obviously that is less than ideal. Still, it will solve the problem if all else fails.

提交回复
热议问题