Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » how to run junit test from maven
how to run junit test from maven [message #1750725] Tue, 27 December 2016 13:59 Go to next message
paul lu is currently offline paul luFriend
Messages: 29
Registered: April 2013
Junior Member
Hi,

I created an example xtext project from eclipse with maven build checked:
org.xtext.example.mydsl

I build the language with maven install in the org.xtext.example.mydsl.parent directory and get all the artifacts generated and one test : MyDslParsingTest.
When I cd to org.xtext.example.mydsl.tests
and run
mvn test
No tests seems to be run
I was able to run it from eclipse.

How am I supposed to run this test from maven ?

Thanks
Re: how to run junit test from maven [message #1750728 is a reply to message #1750725] Tue, 27 December 2016 14:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10873
Registered: July 2009
Senior Member
if you run mvn clean install from the parent, the test gets executed.
if you run mvn integration-test from the tests project, the tests get executed


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: how to run junit test from maven [message #1750730 is a reply to message #1750728] Tue, 27 December 2016 14:17 Go to previous message
paul lu is currently offline paul luFriend
Messages: 29
Registered: April 2013
Junior Member
That works! Thanks for the quick reply : )
Previous Topic:Serialize selected DSL model objects dynamically
Next Topic:XTend code generation and comments
Goto Forum:
  


Current Time: Fri Jul 21 21:11:35 GMT 2017

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

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