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: 25
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: 10325
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
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: 25
Registered: April 2013
Junior Member
That works! Thanks for the quick reply : )
Previous Topic:Build fails at p2.director
Next Topic:XTend code generation and comments
Goto Forum:
  


Current Time: Tue Mar 28 00:53:55 GMT 2017

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

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