Hello,

Check your test sources place (default is src/test/java) as I can read
in the logs

[INFO] --- maven-compiler-plugin:2.3.2:testCompile
(default-testCompile) @52n-wps-commons ---
[INFO] No sources to compile

And use <include>**/*Test*.java</include> (or none default are
"**/Test*.java", "**/*Test.java", "**/*TestCase.java")


-- 
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy

2011/7/31 tony <[email protected]>:
> hi,
>  my name is Tony , I'm from China. At present time,i do a small project
> named 52n-wps.
>
>   the below is a part of my pom.xml .I guess the maven-surefire-plugins may
> have some problems.
> so i appreciate you could tell me what the problems is. thanks!
>             <plugin>
>                           <groupId>org.apache.maven.plugins</groupId>
>                           <artifactId>maven-surefire-plugin</artifactId>
>                           <version>2.4.3</version>
>                           <configuration>
>                       <includes>
>                               <include>**Test*.java</include>
>                       </includes>
>               </configuration>
>                       </plugin>
>
> when i run the maven instal function of maven. Then I get :
>
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building 52north 52n-wps-commons 2.0-RC8-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-resources-plugin:2.3:resources (default-resources) @
> 52n-wps-commons ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> 52n-wps-commons ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.3:testResources (default-testResources)
> @ 52n-wps-commons ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> C:\Users\keen\workspace\52n-wps\52n-wps-commons\src\test\resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> 52n-wps-commons ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @ 52n-wps-commons
> ---
> [INFO] Surefire report directory:
> C:\Users\keen\workspace\52n-wps\52n-wps-commons\target\surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
>
> Results :
>
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
> [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ 52n-wps-commons ---
> [INFO] Building jar:
> C:\Users\keen\workspace\52n-wps\52n-wps-commons\target\52n-wps-commons-2.0-RC8-SNAPSHOT.jar
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> 52n-wps-commons ---
> [INFO] Installing
> C:\Users\keen\workspace\52n-wps\52n-wps-commons\target\52n-wps-commons-2.0-RC8-SNAPSHOT.jar
> to
> C:\Users\keen\.m2\repository\org\n52\wps\52n-wps-commons\2.0-RC8-SNAPSHOT\52n-wps-commons-2.0-RC8-SNAPSHOT.jar
> [INFO] Installing C:\Users\keen\workspace\52n-wps\52n-wps-commons\pom.xml to
> C:\Users\keen\.m2\repository\org\n52\wps\52n-wps-commons\2.0-RC8-SNAPSHOT\52n-wps-commons-2.0-RC8-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.584s
> [INFO] Finished at: Sat Jul 30 20:50:36 CST 2011
> [INFO] Final Memory: 4M/90M
> [INFO]
> ------------------------------------------------------------------------
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/There-are-no-tests-to-run-tp4650980p4650980.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to