JUnit - stop it from exiting on finish?

前端 未结 4 685
旧巷少年郎
旧巷少年郎 2021-01-19 22:34

Quick JUnit question. I\'m running some unit tests that involve starting up the GUI and doing a load of stuff.

I would like to see the results after the test to conf

4条回答
  •  庸人自扰
    2021-01-19 23:12

    One possibility is that your JUnit test is executing a tearDown() method, perhaps in a base class, which shuts down the GUI. If so, you can override the tearDown() method in your JUnit test to prevent this behaviour. E.g.

    protected void tearDown()
    {
       //do nothing
    }
    

提交回复
热议问题