Generate Tests for Non-plugin Projects [message #1848393] |
Tue, 30 November 2021 15:57  |
Eclipse User |
|
|
|
Hi,
I'm using EMF in a plain Java application, not involving Eclipse plug-ins or OSGi bundles. Accordingly, I don't want my model to have the plug-in manifest and related files generated, so I set the Model Plug-in ID property blank to suppress them.
But, this results in the GenModel editor disabling the "Generate Tests" menu action. I still want to generate tests to cover my custom code. I just don't need anything to be an Eclipse/OSGi bundle.
Is there some other way to enable test generation? Or do I just need to set some Model Plug-in ID every time I want to regenerate tests and then delete it again?
Thanks,
Christian
|
|
|
|
|
Re: Generate Tests for Non-plugin Projects [message #1848428 is a reply to message #1848412] |
Wed, 01 December 2021 14:39  |
Eclipse User |
|
|
|
Hi Christian
If you use an MWE2 script to invoke GenModel, (and everything else of interest), your script can automatically do the tweaks for you. Nowadays MWE2 seems to have a GenModel bean, otherwise you can use the /org.eclipse.ocl.examples.build/src/org/eclipse/ocl/examples/build/utilities/GenerateModel.java bean that I developed to workaround a now-fixed EMF bug wrt standalone usage.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.05861 seconds