Eclipse function/plugin that finds corresponding junit class?

前端 未结 4 1129
梦如初夏
梦如初夏 2021-01-11 16:34

I\'ve been searching high and low for an Eclipse feature that lets you right-click on a main source class and find the corresponding JUnit class(es), without me having to na

4条回答
  •  萌比男神i
    2021-01-11 17:30

    As a partial answer to your question, there is no requirement that tests have a one to one correspondence with main classes, or any standard naming convention (even with maven). What you would want is a plugin that (for example based on a regex) matches source classNames to dest ClassNames, and then loads that. Such a plugin would allow you to do what you want (and also for other uses not related to junit), but I'm not aware of one.

提交回复
热议问题