Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unit Test for Xtext

I have to test my grammar (written with Xtext). I've see it is possible with use of unit test, but I can't find a good tutorial about it.

Can you help me?

like image 831
Tommaso DS Avatar asked Nov 28 '12 14:11

Tommaso DS


1 Answers

There are several links about this.

  • The official tutorials have chapter about special Xtext/Junit support: Unit Testing the Language

  • Xtext-Utils has some tools

  • Xpect provides a DSL for unittesting DSLs. Slides here (Looks interesting)

  • The slides of Markus Voelter "Testing DSLs" explain stuff.

like image 72
A.H. Avatar answered Oct 01 '22 17:10

A.H.