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 14:21 Go to next message
No real name is currently offline No real name
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 14:41 Go to previous message
No real name is currently offline No real name
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: Thu Jul 31 03:44:15 EDT 2014

Powered by FUDForum. Page generated in 0.01846 seconds