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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.