What GUI should I run with JUnit(similar to NUnit gui)

后端 未结 5 1718
鱼传尺愫
鱼传尺愫 2020-12-19 02:36

What GUI should use to run my JUnit tests, and how exactly do I do that? My entire background is in .NET, so I\'m used to just firing up my NUnit gui and running my unit tes

5条回答
  •  Happy的楠姐
    2020-12-19 02:59

    If you want a standalone test runner (not the build-in IDE one), then for Junit3 you can use

    • junit.textui.TestRunner %your_class% - command line based runner
    • junit.swingui.TestRunner [%your_class%] - runner with user interface (swing-powered)

    For Junit4, the UI-powered runners were removed and so far I haven't found a convenient solution to run new Junit4 tests on old swing-powered runner without additional libraries. But you can use JUnit 4 Extensions that provides a workaround to use junit.swingui.TestRunner. More here

提交回复
热议问题