简体   繁体   中英

How to run all unique Junit tests in a given package?

If I right click on a package and run all tests it will run all the JUnit tests it finds in the package, however it will also run suites so you can multiple of the same tests running.

How can I run only JUnit tests and not suites? or only run the same test once?

I also faced the same issue. Eclipse doesn't have any mechanism of selecting only tests and not suites. The solution I arrived is to have a testsuites source folder where I save the test suites. I use tests source folder to keep individual test cases.

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