Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Change display name of unit tests in JUnit Eclipse plugin
Change display name of unit tests in JUnit Eclipse plugin [message #869403] Thu, 03 May 2012 06:53 Go to next message
Eclipse UserFriend
Is it possible for an Eclipse plugin to change the display name of unit tests run by the default Eclipse JUnit plugin?

Some background: I'm trying to create a plugin which will display unit test names (in the JUnit view in Eclipse) a bit different from the actual method name. If the actual test method name is "anEmptyCollectionHasSizeZero" I want it to be displayed in the Eclipse JUnit view as "An empty collection has size zero".

I've managed to display the test method names in the way described above as a separate view in a plugin, but would as I said like to get this feature integrated in the normal JUnit view. I tried to see if I could find a related extension point, but could not find anything. Is it possible to do this?

Also, is there a plugin which already does this, or similar?
Re: Change display name of unit tests in JUnit Eclipse plugin [message #870103 is a reply to message #869403] Sun, 06 May 2012 09:39 Go to previous message
Eclipse UserFriend
Hi Henrik,

Your use case sounds very specific to me, so you shouldn't expect a dedicated extension point just for this scenario. The official answer will most likely be: no, that's not possible.

If you still want to adapt the JUnit plugin in this way, you may want to look into technology that allows you to hook into existing plugins even where no extension point exists.
You could, e.g., use Object Teams - the following links should get you started:
- http://wiki.eclipse.org/Object_Teams_Quick-Start
- http://www.eclipse.org/objectteams/
- http://www.eclipse.org/forums/eclipse.objectteams (for questions)

best,
Stephan
Previous Topic:Problems with Windows 8 CP x64 and JDT x64
Next Topic:ClassNotFoundException
Goto Forum:
  


Current Time: Sun Jul 13 20:34:39 EDT 2025

Powered by FUDForum. Page generated in 0.03764 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top