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
Hi,

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
Michael
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 offline Christian DietrichFriend
Messages: 6544
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:

http://sourceforge.net/projects/fit4oaw/
http://kthoms.wordpress.com/?s=fit4oaw
http://blogs.itemis.de/feltes/2009/03/27/test-driven-mdsd-mi t-fit4oaw/

~Christian

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


Current Time: Thu Dec 18 20:14:04 GMT 2014

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

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