You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Fabrice BELLINGARD (JIRA)" <ji...@codehaus.org> on 2005/10/06 17:03:11 UTC
[jira] Created: (MNG-1116) Test classes named "Test*.java" are not executed by default while they should
Test classes named "Test*.java" are not executed by default while they should
-----------------------------------------------------------------------------
Key: MNG-1116
URL: http://jira.codehaus.org/browse/MNG-1116
Project: Maven 2
Type: Bug
Components: maven-surefire-plugin
Versions: 2.0-beta-3
Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
Reporter: Fabrice BELLINGARD
Take a project:
MyProject
+ src
+ test
+ java
+ foo
+ TestExample.java
With the following pom:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<packaging>jar</packaging>
<name>Test</name>
<version>1.0.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
The test class "TestExample.java" gets compiled, but not executed. However, looking at the code of the plugin, it should be (code found in the #execute method of the Surefire plugin):
...
if ( includes == null || includes.size() == 0 )
{
includes = new ArrayList( Arrays.asList( new String[] { "**/Test*.java", "**/*Test.java", "**/*TestCase.java" } ) );
}
...
If you change the name from "TestExample.java" to "ExampleTest.java", this works.
Weird!
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1116) Test classes named "Test*.java" are not executed by default while they should
Posted by "Johnny R. Ruiz III (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1116?page=comments#action_48170 ]
Johnny R. Ruiz III commented on MNG-1116:
-----------------------------------------
Can't duplicate this problem. Everything is run on my tests... **/Test*.java", "**/*Test.java", "**/*TestCase.java. :)
> Test classes named "Test*.java" are not executed by default while they should
> -----------------------------------------------------------------------------
>
> Key: MNG-1116
> URL: http://jira.codehaus.org/browse/MNG-1116
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0-beta-3
> Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
> Reporter: Fabrice BELLINGARD
> Assignee: Johnny R. Ruiz III
> Fix For: 2.0-beta-4
>
>
> Take a project:
> MyProject
> + src
> + test
> + java
> + foo
> + TestExample.java
> With the following pom:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <packaging>jar</packaging>
> <name>Test</name>
> <version>1.0.0</version>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> </project>
> The test class "TestExample.java" gets compiled, but not executed. However, looking at the code of the plugin, it should be (code found in the #execute method of the Surefire plugin):
> ...
> if ( includes == null || includes.size() == 0 )
> {
> includes = new ArrayList( Arrays.asList( new String[] { "**/Test*.java", "**/*Test.java", "**/*TestCase.java" } ) );
> }
> ...
> If you change the name from "TestExample.java" to "ExampleTest.java", this works.
> Weird!
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-1116) Test classes named "Test*.java" are not executed by default while they should
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1116?page=all ]
Brett Porter closed MNG-1116:
-----------------------------
Resolution: Cannot Reproduce
Fix Version: (was: 2.0-beta-4)
> Test classes named "Test*.java" are not executed by default while they should
> -----------------------------------------------------------------------------
>
> Key: MNG-1116
> URL: http://jira.codehaus.org/browse/MNG-1116
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0-beta-3
> Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
> Reporter: Fabrice BELLINGARD
> Assignee: Johnny R. Ruiz III
>
>
> Take a project:
> MyProject
> + src
> + test
> + java
> + foo
> + TestExample.java
> With the following pom:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <packaging>jar</packaging>
> <name>Test</name>
> <version>1.0.0</version>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> </project>
> The test class "TestExample.java" gets compiled, but not executed. However, looking at the code of the plugin, it should be (code found in the #execute method of the Surefire plugin):
> ...
> if ( includes == null || includes.size() == 0 )
> {
> includes = new ArrayList( Arrays.asList( new String[] { "**/Test*.java", "**/*Test.java", "**/*TestCase.java" } ) );
> }
> ...
> If you change the name from "TestExample.java" to "ExampleTest.java", this works.
> Weird!
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1116) Test classes named "Test*.java" are not executed by default while they should
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1116?page=all ]
Brett Porter updated MNG-1116:
------------------------------
Fix Version: 2.0-beta-4
> Test classes named "Test*.java" are not executed by default while they should
> -----------------------------------------------------------------------------
>
> Key: MNG-1116
> URL: http://jira.codehaus.org/browse/MNG-1116
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0-beta-3
> Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
> Reporter: Fabrice BELLINGARD
> Fix For: 2.0-beta-4
>
>
> Take a project:
> MyProject
> + src
> + test
> + java
> + foo
> + TestExample.java
> With the following pom:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <packaging>jar</packaging>
> <name>Test</name>
> <version>1.0.0</version>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> </project>
> The test class "TestExample.java" gets compiled, but not executed. However, looking at the code of the plugin, it should be (code found in the #execute method of the Surefire plugin):
> ...
> if ( includes == null || includes.size() == 0 )
> {
> includes = new ArrayList( Arrays.asList( new String[] { "**/Test*.java", "**/*Test.java", "**/*TestCase.java" } ) );
> }
> ...
> If you change the name from "TestExample.java" to "ExampleTest.java", this works.
> Weird!
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org