xml - Display my tests using Eclipse JUnit plugin? -


i have written test framework company-specific language. test framework able output junit-like xml.

as example, can save file , open using eclipse junit view, or disp^lay in hudson server. want have directly integrated in eclipse, in order these tests run on eclipse "save" action, , results displayed in junit view.

what best way ?

  • save them file , open file in eclipse (and if so, how ?)
  • directly populate junit view content of xml ? (and if so, how ?)
  • create own view (which do, i'm complete beginner in swt)

i haven't tried myself, imagine little bit of trickery, possible automatically open formatted file in junit view.

i think call org.eclipse.ui.ide.ide.openeditor(iworkbenchpage, uri, string, boolean) should work. because junit-formatted xml files set opened junit view.

before point, need create eclipse plugin. simple plugin have 1 class listen completion of runs testing framework, , class know find resulting xml files , call openeditor on it.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -