JUnit Eclipse plugin source-code?

帅比萌擦擦* 提交于 2019-12-30 08:26:08

问题


I'm looking into writing an Eclipse plugin for FlexUnit and was wondering where I could get the sources for the JUnit Eclipse plugin. I checked the JUnit sources at sourceforge but couldn't spot any code that looked like the plugin code.

Any idea where this code is available?


回答1:


You can find it on Eclipse's repository:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pde.junit/




回答2:


There are now git mirrors of the CVS repositories:

  1. org.eclipse.jdt.junit: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.git
  2. org.eclipse.jdt.junit.core: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.core.git
  3. org.eclipse.jdt.junit.runtime: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.runtime.git
  4. org.eclipse.jdt.junit4.runtime: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit4.runtime.git



回答3:


Since you are in all likelihood using Eclipse, there's a far easier way to import it right into your workspace. The source is bundled with your eclipse distribution.

Just do
File -> Import -> Plug-ins and Fragments

Keep defaults ("Active target platform", "Select from all plug-ins" & "Projects with source folders"

Hit next, and select the JUnit plugin-packages and hit Finish, and they will be imported as Eclipse projects into your workspace.



来源:https://stackoverflow.com/questions/169929/junit-eclipse-plugin-source-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!