简体   繁体   中英

in Eclipse, how to run all junit tests that reference one class

lets say we have class A, and I have a lot of junit classes, what is the easiest way to run all junit or all junit classes that make a reference to this class A?

for example,

  1. look for all references of the class in the project.
  2. something in the view to run all junit

Interestingly, Eclipse is supposed to have a feature exactly for this purpose. Under the "Search" menu, there is an item labeled "Referring Tests...".

在此输入图像描述

According to the Eclipse documentation, this command:

Finds all JUnit tests that refer to the currently selected type

Unfortunately, it appears that this feature still does not work .

Maybe it's a sign it's just as well to run all the tests, as mentioned in the comments.

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