Skip to main content



      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 14:46 Go to next message
Eclipse UserFriend
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 00:08 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: EMF - genmodel generate test code option not available [message #1836503 is a reply to message #1836501] Wed, 06 January 2021 02:25 Go to previous message
Eclipse UserFriend
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: Sun Nov 09 01:43:54 EST 2025

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

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

Back to the top