You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Ziesemer (JIRA)" <ji...@codehaus.org> on 2012/02/24 19:24:02 UTC

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Mark Ziesemer created SUREFIRE-844:
--------------------------------------

             Summary: "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
                 Key: SUREFIRE-844
                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.x support
    Affects Versions: 2.12
         Environment: JDK 1.7.0_02, Windows 7.
            Reporter: Mark Ziesemer


Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.

This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):

	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-surefire-plugin</artifactId>
		<version>2.11</version>
		<configuration>
			<test>com.example.MyTest</test>
		</configuration>
	</plugin>

With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:

	-------------------------------------------------------
	 T E S T S
	-------------------------------------------------------
	
	Results :
	
	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

I don't see anything in the release announcement that should account for this.

If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.

I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Gabriele Catania (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301228#comment-301228 ] 

Gabriele Catania commented on SUREFIRE-844:
-------------------------------------------

I can confirm that it works on Linux (ubuntu precise) but doesn't on windows
                
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Scott Bartram (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=294150#comment-294150 ] 

Scott Bartram commented on SUREFIRE-844:
----------------------------------------

In my environment, this is broken on Windows but works on Mac.  I haven't tested Linux yet.
                
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Ziesemer updated SUREFIRE-844:
-----------------------------------

    Attachment: SUREFIRE-844-2.12.txt

Debug output from "mvn clean test" on the attached test project, using Surefire plugin version 2.12 as attached.  Observe the "No tests were executed!" exception.
                
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292923#comment-292923 ] 

Mark Ziesemer edited comment on SUREFIRE-844 at 2/28/12 10:33 AM:
------------------------------------------------------------------

Debug output from "mvn clean test" on the attached test project, after only changing the Surefire plugin version from 2.12 to 2.11.  Observe that 1 test executed as expected.
                
      was (Author: ziesemer):
    Debug output from "mvn clean test" on the attached test project, after changing the Surefire plugin version from 2.12 to 2.11.  Observe that 1 test executed as expected.
                  
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292924#comment-292924 ] 

Mark Ziesemer edited comment on SUREFIRE-844 at 2/28/12 10:34 AM:
------------------------------------------------------------------

"SUREFIRE-844-2.12.txt": Debug output from "mvn clean test" on the attached test project, using Surefire plugin version 2.12 as attached.  Observe the "No tests were executed!" exception.
                
      was (Author: ziesemer):
    Debug output from "mvn clean test" on the attached test project, using Surefire plugin version 2.12 as attached.  Observe the "No tests were executed!" exception.
                  
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292923#comment-292923 ] 

Mark Ziesemer edited comment on SUREFIRE-844 at 2/28/12 10:34 AM:
------------------------------------------------------------------

"SUREFIRE-844-2.11.txt": Debug output from "mvn clean test" on the attached test project, after only changing the Surefire plugin version from 2.12 to 2.11.  Observe that 1 test executed as expected.
                
      was (Author: ziesemer):
    Debug output from "mvn clean test" on the attached test project, after only changing the Surefire plugin version from 2.12 to 2.11.  Observe that 1 test executed as expected.
                  
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Ziesemer updated SUREFIRE-844:
-----------------------------------

    Attachment: SUREFIRE-844-2.11.txt

Debug output from "mvn clean test" on the attached test project, after changing the Surefire plugin version from 2.12 to 2.11.  Observe that 1 test executed as expected.
                
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Ziesemer updated SUREFIRE-844:
-----------------------------------

    Attachment: SUREFIRE-844.zip

Minimal test project demonstrating issue.
                
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

Posted by "Mark Ziesemer (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/SUREFIRE-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292922#comment-292922 ] 

Mark Ziesemer edited comment on SUREFIRE-844 at 2/28/12 10:33 AM:
------------------------------------------------------------------

SUREFIRE-844.zip: Minimal test project demonstrating issue.
                
      was (Author: ziesemer):
    Minimal test project demonstrating issue.
                  
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (SUREFIRE-844) "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)

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

Kristian Rosenvold closed SUREFIRE-844.
---------------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.13
         Assignee: Kristian Rosenvold

Fixed in SUREFIRE-824 and committed on trunk (even though 824 is still open)
                
> "test" parameter no longer working with JUnit in 2.12 (worked in 2.9 - 2.11)
> ----------------------------------------------------------------------------
>
>                 Key: SUREFIRE-844
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-844
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.12
>         Environment: JDK 1.7.0_02, Windows 7.
>            Reporter: Mark Ziesemer
>            Assignee: Kristian Rosenvold
>             Fix For: 2.13
>
>         Attachments: SUREFIRE-844-2.11.txt, SUREFIRE-844-2.12.txt, SUREFIRE-844.zip
>
>
> Maven is configured with JUnit 4.10.  Assume a 'MyTest' class with public, non-static, 0-arg methods annotated with org.junit.Test.
> This was working with Surefire 2.9, 2.10, and 2.11 (and probably earlier):
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-plugin</artifactId>
> 		<version>2.11</version>
> 		<configuration>
> 			<test>com.example.MyTest</test>
> 		</configuration>
> 	</plugin>
> With only updating the Surefire version from 2.11 to 2.12, the tests no longer execute:
> 	-------------------------------------------------------
> 	 T E S T S
> 	-------------------------------------------------------
> 	
> 	Results :
> 	
> 	Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> I don't see anything in the release announcement that should account for this.
> If I remove the 'test' parameter entirely, it will again successfully run - but will run all tests that it finds instead of what I'm expecting it to run.
> I can't attach any additional details from what I'm currently working on, but will work on providing a proper minimal test case over the weekend.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira