Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Verifying Xpand output(Test strategy for the Xpand generator)
[Xpand] Verifying Xpand output [message #651353] Sat, 29 January 2011 18:49 Go to next message
Michael Lindner is currently offline Michael LindnerFriend
Messages: 3
Registered: November 2010
Junior Member

there are solutions testing a Xtext grammar and the generated object structure but how is it, if I want to test the generator?

Is there a possibility creating tests for the generated output of xpand-templates or do I have to do a simple text-diff if I have for example a reference-output file?

Thank you
Re: [Xpand] Verifying Xpand output [message #651354 is a reply to message #651353] Sat, 29 January 2011 19:04 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14651
Registered: July 2009
Senior Member
Hello Michael,

Generally you could compare the generated output against a defined result file.

But often it is better to test the generated code on a runtime/ functional base (e.g. using unit tests) and not on source code base - since it imho does not play a role if the generated code stays the same even for the least blank Wink.

If you are interested in testing Xtend / Xpand on a more fine granular level then take a look at fit4oaw: t-fit4oaw/


Twitter : @chrdietrich
Blog :
Previous Topic:[Acceleo 3] - Expression in <init> clause of template
Next Topic:Eclipse Community Awards
Goto Forum:

Current Time: Wed Feb 21 09:54:57 GMT 2024

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

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

Back to the top