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

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 ?

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: 146
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,
Previous Topic:HOTs in Xtend
Next Topic:Cross reference between two Arms in thre AST Diagramm
Goto Forum:

Current Time: Tue Jun 06 16:33:05 GMT 2023

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

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

Back to the top