简体   繁体   中英

Run all the junit tests that are in a given package in Netbeans?

We have a bunch junit tests in our current project. Essentially we are looking for a way to run all the test in a given package. Currently in Netbeans I see you can run all the tests or a single test, but no way to run aa sub-set of tests.

Is this built into Netbeans? Or is there another way we can do this?

In JUnit this is achieved through TestSuite. You can check for more information here (look at the code, not at the pictures). At least in the Eclipse IDE there is a functionality that lets you add a new TestSuite, select which tests it is to include and then have the IDE generate it for you. I haven't seen such thing in Netbeans, but you should check for any additional JUnit plugins.

只需像在此问题上记录的那样设置junit测试组,然后通过您的ant或maven构建来运行测试组。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM