Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF - genmodel generate test code option not available(I want to know why there is no option for that function (grayed out))
EMF - genmodel generate test code option not available [message #1836488] Tue, 05 January 2021 19:46 Go to next message
Andrej Liebert is currently offline Andrej LiebertFriend
Messages: 18
Registered: January 2021
Junior Member
Hello together,

I am a newcomer in IDEs and currently start to work with the EMF framework.

There were two guides that I have followed to get into modelling with EMF as generating the resulted model as Java code.

(https://) www. vogella.com/tutorials/EclipseEMF/article.html#models-and-eclipse-emf
under the section "4.1. Generating Java code" you can see a few options in the picture right below the topic. The "Generate Test Code" option is not available for me.

Also in (https://) eclipsesource.com/blogs/tutorials/emf-tutorial/ in section "Code Generation" is the Test plug in mentioned.

I have followed both guides and ended up at the same spot. So far I got a few hints that have not lead to anything.

Thank you for any advice you can give!
Re: EMF - genmodel generate test code option not available [message #1836501 is a reply to message #1836488] Wed, 06 January 2021 05:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
If you double click the root GenModel object in the Generator editor, and find the "Tests" section of Properties, you've probably set the Test Directory property to the empty string, disabling the generation of the Tests project. If you select that property, and hit the Restore Default Value button on in the view's toolbar, it should go back to a value like /org.example.model.tests/src.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF - genmodel generate test code option not available [message #1836503 is a reply to message #1836501] Wed, 06 January 2021 07:25 Go to previous message
Andrej Liebert is currently offline Andrej LiebertFriend
Messages: 18
Registered: January 2021
Junior Member
thank you for your reply, Ed.

Tests Directory was empty and the Restore Default Value button as the manual setting of the string worked correctly.

Best regards
Previous Topic:[CDO] - Migrating from 4.6 to 4.10 - DB Exception on server restart
Next Topic:[CDO] ClassCastException CDOFeatureDeltaImpl$UnknownValue to InternalEObject
Goto Forum:
  


Current Time: Fri Apr 26 02:55:42 GMT 2024

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

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

Back to the top