Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Unit testing validation errors
Unit testing validation errors [message #918843] Fri, 21 September 2012 11:55 Go to next message
Klaus Birken is currently offline Klaus BirkenFriend
Messages: 25
Registered: December 2009
Junior Member
Hi,

I am building some unit tests for detection of validation errors for Xtext-based DSLs. Therefore, I created some files in my DSL with serious errors the validator will find. This works as expected, thanks to xtext-utils. The unit tests are green iff the validated DSL files are red Smile

However, as the validation errors are detected also in my Eclipse environment, my workspace is polluted with error markers which is annoying. Is there a standard (maybe: obvious) solution to mark errors as deliberately?

Regards,
Klaus
Re: Unit testing validation errors [message #921690 is a reply to message #918843] Mon, 24 September 2012 10:49 Go to previous message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 22
Registered: February 2012
Junior Member
I include the problematic files in the unit test and parse this string using org.eclipse.xtext.junit.util.ParseHelper.
Previous Topic:PartialParsingHelper.reparse removes Container ?!
Next Topic:cross reference via classpath rather than project
Goto Forum:
  


Current Time: Tue Dec 23 00:15:40 GMT 2014

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

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