Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » What command in Eclipse will compile Java test classes but would not run them)(compile only test classes, but do not run them)
What command in Eclipse will compile Java test classes but would not run them) [message #654057] Sun, 13 February 2011 19:21 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: February 2011
Junior Member
I am trying to fin a way in Eclipse 3.5 IDE to compile JUnit test classes but do not run the,
I created a Maven Build with Goals: clean install
I checked "Skip Tests"
It is building fine.
-------------------------------
BUILD SUCCESSFUL
-------------------------------
However when I am trying to execute JUnit test I am getting ClassNotFoundException on my JUnit class
Sad

Can anyone help?
Is there way in Eclipse (using maven plugin) to compile JUnit test classes without running them? From IDE, not using external maven command?

Looks like this command skips compilation of JUnit classes.
http://maven.apache.org/general.html#skip-test

Re: What command in Eclipse will compile Java test classes but would not run them) [message #654058 is a reply to message #654057] Sun, 13 February 2011 19:41 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: February 2011
Junior Member
I found solution that worked:
Added to pom.xml:

<configuration>
<skipTests>true</skipTests>
</configuration>

http://maven.apache.org/plugins/maven-surefire-plugin/exampl es/skipping-test.html


Razz
Previous Topic:How to stop jetty:run from q4e 0.9?
Next Topic:Dependency management with Nexus references
Goto Forum:
  


Current Time: Mon Nov 24 15:25:07 GMT 2014

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

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