Skip to main content


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: 43
Registered: April 2013
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: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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: 43
Registered: April 2013
Member
That works! Thanks for the quick reply : )
Previous Topic:Build fails at p2.director
Next Topic:Validator for my language
Goto Forum:
  


Current Time: Thu Apr 25 04:48:42 GMT 2024

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

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

Back to the top