Testing code generation [message #1815818] |
Fri, 11 October 2019 06:35  |
Eclipse User |
|
|
|
Hi there,
i try to test code generator, but i am getting following Failure.
org.junit.ComparisonFailure: expected:<[<Hello World ;-)>
]> but was:<[NO FILE WAS GENERATED]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.eclipse.xtext.xbase.testing.CompilationTestHelper$1.accept(CompilationTestHelper.java:178)
at org.eclipse.xtext.xbase.testing.CompilationTestHelper$1.accept(CompilationTestHelper.java:175)
at org.eclipse.xtext.xbase.testing.CompilationTestHelper.compile(CompilationTestHelper.java:247)
at org.eclipse.xtext.xbase.testing.CompilationTestHelper.compile(CompilationTestHelper.java:196)
at org.eclipse.xtext.xbase.testing.CompilationTestHelper.assertCompilesTo(CompilationTestHelper.java:175)
how can i fix it?
Any help is appreciated
Thanks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Testing code generation [message #1817786 is a reply to message #1817760] |
Fri, 29 November 2019 01:57   |
Eclipse User |
|
|
|
Thank you very much Christian, the problem is, MyDsl was created with eclipse version 2019-09( Dsl tools version) there are everything like xtext, emf and so on installed
but i want to install MyDsl plugin in eclipse version 2019-06 ( java version) , where i dont have any xtext, antlr ...
i can install my MyDsl plugin in eclipse version 2019-09(dsl tools) without any problem, but i can't install the same plugin in eclipse version 2019-06(java version)
to install this plugin ,
opened eclipse version 2019 -06 (java version)
choosed help-> install new software
in the "Work with" section clicked Add button , opened "Add repository" dialog and clicked Local
and selected directory of my updatesite, than appeared MyDsl
|
|
|
|
|
|
|
|
|
|
|
Re: Testing code generation [message #1817819 is a reply to message #1817806] |
Fri, 29 November 2019 10:28  |
Eclipse User |
|
|
|
you can add included features to your feature.xml
but i dont know a list.
i am not sure if
there is also an add required bundles/features button somewhere in the feature editor.
but that may no help in your case if you want to install new stuff into an old eclipse
[Updated on: Fri, 29 November 2019 10:29] by Moderator
|
|
|