Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:53 Go to next message
Henrik Jernevad is currently offline Henrik JernevadFriend
Messages: 1
Registered: May 2012
Junior Member
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 13:39 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
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: Fri Apr 19 02:30:20 GMT 2024

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

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

Back to the top