You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by tony <li...@gmail.com> on 2011/07/31 02:09:54 UTC

There are no tests to run.

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: There are no tests to run.

Posted by Hilco Wijbenga <hi...@gmail.com>.
On 31 July 2011 17:43, tony <li...@gmail.com> wrote:
> Thanks for your reply, And now My question is I don't know what is my
> testSourceDirectory,
> http://maven.40175.n5.nabble.com/file/n4653638/QQ%E6%88%AA%E5%9B%BE20110801084048.png

src/test/java which you do not appear to have. That would explain no
tests being run. :-)

Did you look at [1]? Make sure you follow the link to [2].

[1] http://maven.apache.org/guides/getting-started/index.html
[2] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: There are no tests to run.

Posted by tony <li...@gmail.com>.
Thanks for your reply, And now My question is I don't know what is my
testSourceDirectory, 
http://maven.40175.n5.nabble.com/file/n4653638/QQ%E6%88%AA%E5%9B%BE20110801084048.png 

--
View this message in context: http://maven.40175.n5.nabble.com/There-are-no-tests-to-run-tp4650980p4653638.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: There are no tests to run.

Posted by Olivier Lamy <ol...@apache.org>.
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 <li...@gmail.com>:
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org