Talk:Xtext/FAQ
I'm trying to parse an ecore model from a script conform to a grammar using Xtext. the following link http://www.eclipse.org/Xtext/documentation.html#TutorialUnitTests present a code to adapt to your project. The drawback is where to put this code.