Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to setUp Unit Test for Xtend/Xpand (Xtend Tools)?
How to setUp Unit Test for Xtend/Xpand (Xtend Tools)? [message #666362] Wed, 20 April 2011 07:27 Go to next message
AndreasH  is currently offline AndreasH Friend
Messages: 10
Registered: March 2011
Junior Member
Hi,
i want to write unit test for my functions which are defined in my template extension file. This shows me that it is possible:

https://fornax.itemis.de/confluence/display/fornax/Xtend+Tools

But i have no Idea how to set up this test-environment. i dont now what i have to init xpand. (so its a really usless example)

It would be really helpful if somebody post some example code, so that i can setup my tests.

Thx Andreas
Re: How to setUp Unit Test for Xtend/Xpand (Xtend Tools)? [message #666379 is a reply to message #666362] Wed, 20 April 2011 08:47 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hello Andreas,

within the sources you find a grooy test example for testing Xpand.

http://fornax.svn.sourceforge.net/viewvc/fornax/trunk/utilit ies/xtend-tools/fornax-utilities-xtendtools-reference/src/te st/groovy/org/fornax/utilities/xtendtools/xunit/XpandUnitTes t.groovy?revision=7598&view=markup

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Overview on all XText models of a project
Next Topic:[Xtext] Extends Java Editor for new language
Goto Forum:
  


Current Time: Fri Apr 26 06:47:05 GMT 2024

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

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

Back to the top