Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Test Suite for xtest unit tests(How to write a test Suite for unit test)
Test Suite for xtest unit tests [message #1779680] Thu, 11 January 2018 06:53 Go to next message
shubhankar chowdhury is currently offline shubhankar chowdhuryFriend
Messages: 10
Registered: January 2018
Junior Member
I wrote unit test for my dsl and now I want to write a test Suite file so that I can run all the test case at once and get the code coverage as well.

All my test case are in .xtend file with @Test annotation.

can you help me in how to write a suite file and where to place it.
I hope it is not similar to Java JUnit suite file.

Re: Test Suite for xtest unit tests [message #1779681 is a reply to message #1779680] Thu, 11 January 2018 07:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12187
Registered: July 2009
Senior Member
i dont get your point. xtend is not a test framework. @Test is pure JUnit
=> no difference to java (have a look at the convert java to xtend wizard in the context menu of java files to see the xtend syntax)

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Re: Test Suite for xtest unit tests [message #1779687 is a reply to message #1779680] Thu, 11 January 2018 07:55 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 608
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Just write the Suite in Java and add your Xtend classes (which are actually the Java classes). Writing the Suite class in Xtend does not have a benefit against the Java version, since it is trivial. But in the case you'd prefer to write it in Xtend, it is the same as if you'd write it in Java.
Previous Topic:UI Content Assist Issue
Next Topic:@Traced and getting rid of the traces
Goto Forum:

Current Time: Mon Aug 20 15:19:36 GMT 2018

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

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

Back to the top