[jira] (SUREFIRE-905) Surefore report plugin only executed tests once.Junit Categorization is not possibel

2012-08-17 Thread Ronal Bashirov (JIRA)
Ronal Bashirov created SUREFIRE-905:
---

 Summary: Surefore report plugin only executed tests once.Junit 
Categorization is not possibel
 Key: SUREFIRE-905
 URL: https://jira.codehaus.org/browse/SUREFIRE-905
 Project: Maven Surefire
  Issue Type: Bug
  Components: Maven Surefire Report Plugin
Affects Versions: 2.12.2
 Environment: maven 3.0.4
junit 4.8.1
Reporter: Ronal Bashirov
 Attachments: mavenproject2.zip

When I am trying to run categorized junit tests ,
maven surefire pluing run only first group. All other groups are skipped.
pom.xml
   
org.apache.maven.plugins

maven-surefire-report-plugin
2.12.2


unit

 
com.mycompany.mavenproject2.UnitTest 
 
${project.build.directory}/surefire-reports/unit 

surefire-report-unit

UNIT 


report



comp


com.mycompany.mavenproject2.ComponentTest 
 
${project.build.directory}/surefire-reports/comp 

COMPONENT 

surefire-report-comp 
 

report



sys


com.mycompany.mavenproject2.SystemTest
 
${project.build.directory}/surefire-reports/sys

SYSTEM 

surefire-report-sys 
 

report



   



With output
 T E S T S
---
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, 
useUnlimitedThreads=false
Running com.mycompany.mavenproject2.AppTest
UnitTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration

[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration

[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration


--
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-904) Categorization of tests results in running first tests without categorization,then tests run based on category

2012-08-17 Thread Ronal Bashirov (JIRA)
Ronal Bashirov created SUREFIRE-904:
---

 Summary: Categorization of tests results in running first tests 
without categorization,then tests run based on category
 Key: SUREFIRE-904
 URL: https://jira.codehaus.org/browse/SUREFIRE-904
 Project: Maven Surefire
  Issue Type: Bug
  Components: Maven Surefire Plugin
Affects Versions: 2.12.2
 Environment: maven 3.0.4
junit 4.8.1
maven surefire pluign 2.12.2
Reporter: Ronal Bashirov
 Attachments: mavenproject2.zip

I am separate my tests using junit categories.
So I have some test:
 @Test
@Category(UnitTest.class)
public void testApp1() {

System.out.println( "UnitTest" );
assertTrue(true);
}

@Test
@Category(ComponentTest.class)
public void testApp2() {
System.out.println( "ComponentTest" );
assertTrue(true);
}

@Test
@Category(SystemTest.class)
public void testApp3() {
System.out.println( "SystemTest" );
assertTrue(true);
}
Then I am trying to run them separately 
 
maven-surefire-plugin
2.12.2


unit-tests

test



com.mycompany.mavenproject2.UnitTest 
 
${project.build.directory}/surefire-reports/unit 

 


comp-tests

test



com.mycompany.mavenproject2.ComponentTest
 
${project.build.directory}/surefire-reports/comp 
 
 


sys-tests

test



com.mycompany.mavenproject2.SystemTest
 
${project.build.directory}/surefire-reports/sys  
   
 





As result I am getting

---
 T E S T S
---
Running com.mycompany.mavenproject2.AppTest
UnitTest
ComponentTest
SystemTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0


[surefire:test]
Surefire report directory: 
C:\Users\mz\Documents\NetBeansProjects\mavenproject2\target\surefire-reports\unit

---
 T E S T S
---
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, 
useUnlimitedThreads=false
Running com.mycompany.mavenproject2.AppTest
UnitTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


[surefire:test]
Surefire report directory: 
C:\Users\mz\Documents\NetBeansProjects\mavenproject2\target\surefire-reports\comp

---
 T E S T S
---
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, 
useUnlimitedThreads=false
Running com.mycompany.mavenproject2.AppTest
ComponentTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


[surefire:test]
Surefire report directory: 
C:\Users\mz\Documents\NetBeansProjects\mavenproject2\target\surefire-reports\sys

---
 T E S T S
---
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, 
useUnlimitedThreads=false
Running com.mycompany.mavenproject2.AppTest
SystemTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0





--
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