Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Unit testing - Executing generate code
Unit testing - Executing generate code [message #1835164] Thu, 26 November 2020 08:30 Go to next message
Thomas Guzik is currently offline Thomas GuzikFriend
Messages: 1
Registered: November 2020
Junior Member
Hey,

I'm new to xtext and i have a few test to implement for my CodeGenerator.

I didn't find a way to get the generated code in order to execute it in in test file.

How could I get it ?

Thanks,
Thomas
Re: Unit testing - Executing generate code [message #1835169 is a reply to message #1835164] Thu, 26 November 2020 09:38 Go to previous message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 133
Registered: February 2016
Senior Member
Hello Thomas,

The Xtext Domainmodel example contains such test cases under org.eclipse.xtext.example.domainmodel.tests.CompilerTest

The Domainmodel project is available from the Xtext Example wizard.

Hope that helps,
Tamás
Previous Topic:HOTs in Xtend
Next Topic:XText model to XMI model
Goto Forum:
  


Current Time: Tue May 11 13:57:03 GMT 2021

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

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

Back to the top