You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Igor Petruk (JIRA)" <ji...@codehaus.org> on 2011/04/19 17:20:23 UTC

[jira] Created: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Surefire 2.8, surefire-junit47, No tests to run
-----------------------------------------------

                 Key: SUREFIRE-729
                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
             Project: Maven Surefire
          Issue Type: Bug
            Reporter: Igor Petruk


Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
There are no tests to run.

Here is a part of my config

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8</version>
		  </dependency>
		</dependencies>
		<configuration>
		<excludes>
			<exclude>**/manual/**</exclude>
		</excludes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

Adding "includes" of any form does not change anything.

But when I add 

<includes><include>**/*</include></includes>

it fails trying to run an xml file in resources, interpreting it as class

com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264157#action_264157 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

Oops. I misspelled include when reporting a bug. It was **/*

But anyway

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264148#action_264148 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 3:26 AM:
---------------------------------------------------------------

http://maven-users.828.n2.nabble.com/surefire-junit47-provider-does-not-see-my-tests-while-older-one-does-but-fails-td6247293.html

Here is our discussion. I couldn't continue it, because of a strange spam filter 

      was (Author: vertexua):
    http://maven-users.828.n2.nabble.com/surefire-junit47-provider-does-not-see-my-tests-while-older-one-does-but-fails-td6247293.html

Here is out discussion. I couldn't continue it, because of a strange spam filter 
  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264148#action_264148 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

http://maven-users.828.n2.nabble.com/surefire-junit47-provider-does-not-see-my-tests-while-older-one-does-but-fails-td6247293.html

Here is out discussion. I couldn't continue it, because of a strange spam filter 

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264157#action_264157 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 3:55 AM:
---------------------------------------------------------------

Oops. I formatting have eaten my text when reporting a bug. It was 


{code:xml} 
<includes><include>**/*</include></includes>
{code}

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default


      was (Author: vertexua):
    Oops. I formatting ate my text when reporting a bug. It was 


{code:xml} 
<includes><include>**/*</include></includes>
{code}

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default

  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264153#action_264153 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

;) Ok, your "include" pattern does not work. Includes are evaluated first, so excludes will be meaningless.

http://ant.apache.org/manual/Types/patternset.html


> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264191#action_264191 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

You get the stacktrace (java.lang.AbstractMethodError) you probably have the right surefire configuration but the wrong spring dependency. Surefire is trying to run the test but it doesnt work due to a non-compatible TestExecutionListener that you have registered somewhere in your spring context.

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264199#action_264199 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

I just checked and confirm that issue with java.lang.AbstractMethodError was related to dependencies of spring-mock, that was the latest version (2.0.8) and was depending on Spring of the same version. After this version it was bundled with another spring module and we didn't notice that.

And I checked, now junit47 provider works! "No test to run" that is the awesome way to tell ) I guess there should be a small check with reasonable error message in such case. I could be a good improvement.

Thank you for your help. Good day.

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Rosenvold closed SUREFIRE-729.
---------------------------------------

    Resolution: Not A Bug
      Assignee: Kristian Rosenvold

Please read the appropriate documentation at 

http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html

and

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

Before filing bugs, also consider asking on the users mailing list.

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264158#action_264158 ] 

Kristian Rosenvold edited comment on SUREFIRE-729 at 4/20/11 4:04 AM:
----------------------------------------------------------------------

I'm sure your results will change signficantly if you add a file extension to your patterns. They are actually required.

{code}
**/* matches nothing
{code}
{code}
**/*.java matches something. 
{code} 
It's actually written at the top of the page on the very first link I sent you.



      was (Author: krosenvold):
    I'm sure your results will change signficantly if you add a file extension to your patterns. They are actually required.

**/* matches nothing, **/*.java matches something. It's actually written at the top of the page on the very first link I sent you.


  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264179#action_264179 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

No, there is no error at all. It says "No tests to run". To run test you have to add it to "test" option, but only without Spring runner. THIS is strange. Of course using "test" or disabling Spring runner is not an option.

The problem I am facing started from migration from older surefire, spring, junit. When I put new versions such as JUnit 4.7, Surefire 2.8.1, surefure-juni47-2.8.1, Spring-3.0.5 everything brakes. In fact, these versions together simple don't see my tests, unless I use "test" option and remove Spring runner. Other combinations produce different errors, but I check for versions to be compatible.

Spring documentation says Spring 3 is compatible with JUnit 4.5-4.7. Ok. Surfire documentation says that new Surefire is compatible to Junit 4.7 if provider is forced. Done. Well, I haven't found explicit compatability documentation between surefire and spring. 

We used to use Spring 2.5, Surefire 2.4, JUnit 4.4. But now I research Spring 3 migration possibility with possible parallel test run on JUnit 4.7. All tests fail no matter what I do.

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264159#action_264159 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 4:06 AM:
---------------------------------------------------------------

Sorry, Iy was a mistake when I was posting a bug. I didn't notice that formatting changed how my text looks. See my last comment

      was (Author: vertexua):
    Sorry, I was a mistake when I was posting a bug. I didn't notice that formatting changed how my text looks. See my last comment
  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264157#action_264157 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 3:56 AM:
---------------------------------------------------------------

Oops. I formatting have eaten my text when reporting a bug. It was 


{code:xml} 
<includes><include>**/*</include></includes>
{code}

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default

Plus the question is why it works thorough "test" option, but only without Spring runner

      was (Author: vertexua):
    Oops. I formatting have eaten my text when reporting a bug. It was 


{code:xml} 
<includes><include>**/*</include></includes>
{code}

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default

  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264174#action_264174 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

But I updated what I have. Look at my comment from 20/Apr/11 3:52 AM. It is the config I have now. It has valid include patterns, the default ones (just to check). 

{code:xml}
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
		</includes>
{code}

What's wrong with having this?

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264188#action_264188 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

Hmm... Seems like removing DependencyInjectionTestExecutionListener allows tests to run. The ones that don't need dependency injection even succeed. But this class is included with spring 3.0 distribution. No problems should occur. And it is not too comfortable to live without DI. I'll investigate that further.

Too bad it didn't work out with junit47 provider, I guess no parallel run for now. 

Thanks for time spent and helping out. I am going to research on Spring side. 

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264147#action_264147 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

I used to send my question to mailing list, but you told me to open a JIRA if I add includes and it does not help. I removed excludes, added includes, by copy-pasting from documentation of what should be default. It seems the be a strange action to me, because documentation says I should work without specifying includes.

I can make my test's run by using "test" option. But even if I use "test" options Spring's @RunWith(SpringJUnitClassRunner.class) should be removed.

I currently have problems with the mailing list, I says that spam score (from my work email) is higher than 10 )

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264170#action_264170 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

Do you thing the issue is Spring related? Because even though includes don't work, when running through test option Spring JUnit4 runner should be removed

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264173#action_264173 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

It seems like you're not reading my responses. Your includes pattern is wrong. Nothing. will. be. run... Ever.

As for the spring issue, try concentrate on one thing at a time ? See comments on the other issue.

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264181#action_264181 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

I suggest you remove explicit provider configuration (explicit dependency on surefire-junit47). If that does not work post your *complete*  surefire configuration as well as the file-name of at least one test class you expect to be run. Use attachments to the issue instead of posting in-line.

I will not provide any further support on this issue unless you do this.


> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264039#action_264039 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

There are several obvious problems with your configuration and if you ask on the maven user list you may actually get help.

If, after having read the documentation, you find them to be unclear, please file an issue requesting a documentation update, explaining the problems you had with the documentation. Or even better, update the source and create a patch.

Thanks, sorry for the RTFM


> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264012#action_264012 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

The problems is that I tried all possible patterns and a case without them. All the same. "No tests to run". This problem occurred during migration from a version 2.4, where everything works fine.

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264175#action_264175 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

Are you basically talking about why SUREFIRE-728 does not work now ? I am unable to read your mind

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264158#action_264158 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

I'm sure your results will change signficantly if you add a file extension to your patterns. They are actually required.

**/* matches nothing, **/*.java matches something. It's actually written at the top of the page on the very first link I sent you.



> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264190#action_264190 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

But it says "No tests to run". So I guest either surefire, surefire provider, junit or spring has some criteria to scan test related classes when they load them. If it does not match that criteria it is silently skipped. It would be a nice feature of surefire to dump a list of test files it actually tries to run, because they pass include/exclude filters (but other layers possibly skip)

I'll check dependencies

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264189#action_264189 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

I think you need to solve one problem at a time. 4.7 + Parallel works perfect with spring. I think you're using some external dependency that has old spring dependencies, like this one:

[INFO] +- com.company.crmwb:support:jar:3.6.0-SNAPSHOT:test
[INFO] |  \- org.springframework:spring-mock:jar:2.0.8:test


> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264159#action_264159 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

Sorry, I was a mistake when I was posting a bug. I didn't notice that formatting changed how my text looks. See my last comment

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264189#action_264189 ] 

Kristian Rosenvold edited comment on SUREFIRE-729 at 4/20/11 7:16 AM:
----------------------------------------------------------------------

I think you need to solve one problem at a time. 4.7 + Parallel works perfect with spring. I think you're using some external dependency that has old spring dependencies, like this one:

{code}
[INFO] +- com.company.crmwb:support:jar:3.6.0-SNAPSHOT:test
[INFO] |  \- org.springframework:spring-mock:jar:2.0.8:test
{code}

      was (Author: krosenvold):
    I think you need to solve one problem at a time. 4.7 + Parallel works perfect with spring. I think you're using some external dependency that has old spring dependencies, like this one:

[INFO] +- com.company.crmwb:support:jar:3.6.0-SNAPSHOT:test
[INFO] |  \- org.springframework:spring-mock:jar:2.0.8:test

  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Petruk updated SUREFIRE-729:
---------------------------------

    Attachment: surfire-config.xml

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264157#action_264157 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 3:55 AM:
---------------------------------------------------------------

Oops. I formatting ate my text when reporting a bug. It was 


{code:xml} 
<includes><include>**/*</include></includes>
{code}

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default


      was (Author: vertexua):
    Oops. I misspelled include when reporting a bug. It was 

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default
  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264184#action_264184 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

As I said in SUREFIRE-728, this is related to the version of junit. Use mvn dependency:tree to investgate exactly WHICH version is being picked up, and possibly exclude the wrong version. If this fails you may also give junit 4.8.2 a try, since it also is compatible with spring 3.x

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264187#action_264187 ] 

Kristian Rosenvold commented on SUREFIRE-729:
---------------------------------------------

I looked at the spring source and your stacktrace indicates you have an implementation of org.springframework.test.context.TestExecutionListener that is not compatible with spring 3.

This is the source of your problems.



> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264157#action_264157 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 3:54 AM:
---------------------------------------------------------------

Oops. I misspelled include when reporting a bug. It was 

But anyway


{code:xml} 
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

{code} 

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default

      was (Author: vertexua):
    Oops. I misspelled include when reporting a bug. It was **/*

But anyway

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.8.1</version>
	    <dependencies>
		  <dependency>
			<groupId>org.apache.maven.surefire</groupId>
			<artifactId>surefire-junit47</artifactId>
			<version>2.8.1</version>
		        </dependency>
			</dependencies>

		<configuration>
		<includes>
			<include>**/Test*.java</include>
			<include>**/*Test.java</include>
			<include>**/*TestCase.java</include>
			</includes>
		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
	</configuration>
</plugin>

Here what I have now. Same result. Even without mentioning that I am simply copy-pasting what should be enabled by default
  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Petruk updated SUREFIRE-729:
---------------------------------

    Attachment: deps.txt

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Petruk updated SUREFIRE-729:
---------------------------------

    Attachment: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt

This is the typical error in surefire report if I remove forced provider (they are the same for all tests)

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264192#action_264192 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

That exactly what happens with junit4 provider. But junit47 simply tells that there is no tests. 

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264186#action_264186 ] 

Igor Petruk commented on SUREFIRE-729:
--------------------------------------

I have attached the deps.txt file. It says 4.7 as expected. If I use 4.8.2 I have the same result 

> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>         Attachments: com.ubs.crmwb.persistence.core.dao.impl.bag.CptInfoBagDaoImplTest.txt, deps.txt, surfire-config.xml
>
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SUREFIRE-729) Surefire 2.8, surefire-junit47, No tests to run

Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264159#action_264159 ] 

Igor Petruk edited comment on SUREFIRE-729 at 4/20/11 4:07 AM:
---------------------------------------------------------------

Sorry, It was my mistake when I was posting a bug. I didn't notice that formatting changed how my text looks. See my last comment

      was (Author: vertexua):
    Sorry, Iy was a mistake when I was posting a bug. I didn't notice that formatting changed how my text looks. See my last comment
  
> Surefire 2.8, surefire-junit47, No tests to run
> -----------------------------------------------
>
>                 Key: SUREFIRE-729
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-729
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Igor Petruk
>            Assignee: Kristian Rosenvold
>
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> There are no tests to run.
> Here is a part of my config
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-surefire-plugin</artifactId>
> 	<version>2.8</version>
> 	    <dependencies>
> 		  <dependency>
> 			<groupId>org.apache.maven.surefire</groupId>
> 			<artifactId>surefire-junit47</artifactId>
> 			<version>2.8</version>
> 		  </dependency>
> 		</dependencies>
> 		<configuration>
> 		<excludes>
> 			<exclude>**/manual/**</exclude>
> 		</excludes>
> 		<argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
> 	</configuration>
> </plugin>
> Adding "includes" of any form does not change anything.
> But when I add 
> <includes><include>**/*</include></includes>
> it fails trying to run an xml file in resources, interpreting it as class
> com/mycompany/Myxml.xml is treated java test class com.mycompany.Myxml test class. Of course it fails

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira