Skip to content
Browse files

fixed tests for SUREFIRE[1055]

  • Loading branch information...
1 parent 9ef1843 commit 55b8d9117a3d3bb580e509a8f5dd982d5ace7829 @Tibor17 committed Feb 19, 2014
View
115 ...fire-integration-tests/src/test/java/org/apache/maven/surefire/its/JUnit47ParallelIT.java
@@ -120,71 +120,63 @@ public void unknownThreadCountClassesAndMethods()
public void serial()
{
// takes 7.2 sec
- unpack().setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ unpack().setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void useUnlimitedThreadsSuites1()
{
// takes 3.6 sec
unpack().parallelSuites().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void useUnlimitedThreadsSuites2()
{
// takes 3.6 sec
unpack().parallelSuites().useUnlimitedThreads().threadCountSuites( 5 ).setTestToRun( "Suite*Test" )
- .executeTest()//.verifyErrorFree( 24 )
- ;
+ .executeTest().verifyErrorFree( 24 );
}
@Test
public void useUnlimitedThreadsClasses1()
{
// takes 1.8 sec
unpack().parallelClasses().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void useUnlimitedThreadsClasses2()
{
// takes 1.8 sec
unpack().parallelClasses().useUnlimitedThreads().threadCountClasses( 5 ).setTestToRun( "Suite*Test" )
- .executeTest()//.verifyErrorFree( 24 )
- ;
+ .executeTest().verifyErrorFree( 24 );
}
@Test
public void useUnlimitedThreadsMethods1()
{
// takes 2.4 sec
unpack().parallelMethods().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void useUnlimitedThreadsMethods2()
{
// takes 2.4 sec
unpack().parallelMethods().useUnlimitedThreads().threadCountMethods( 5 ).setTestToRun( "Suite*Test" )
- .executeTest()//.verifyErrorFree( 24 )
- ;
+ .executeTest().verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsSuitesAndClasses1()
{
// takes 0.9 sec
unpack().parallelSuitesAndClasses().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
@@ -193,70 +185,61 @@ public void unlimitedThreadsSuitesAndClasses2()
// takes 0.9 sec
// 1.8 sec with 4 parallel classes
unpack().parallelSuitesAndClasses().useUnlimitedThreads().threadCountSuites( 5 ).threadCountClasses( 15 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsSuitesAndMethods1()
{
// takes 1.2 sec
unpack().parallelSuitesAndMethods().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsSuitesAndMethods2()
{
// takes 1.2 sec
unpack().parallelSuitesAndMethods().useUnlimitedThreads().threadCountSuites( 5 ).threadCountMethods( 15 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsClassesAndMethods1()
{
// takes 0.6 sec
unpack().parallelClassesAndMethods().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsClassesAndMethods2()
{
// takes 0.6 sec
unpack().parallelClassesAndMethods().useUnlimitedThreads().threadCountClasses( 5 ).threadCountMethods( 15 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsAll1()
{
// takes 0.3 sec
- unpack().parallelAll().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ unpack().parallelAll().useUnlimitedThreads().setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void unlimitedThreadsAll2()
{
// takes 0.3 sec
unpack().parallelAll().useUnlimitedThreads().threadCountSuites( 5 ).threadCountClasses( 15 )
- .threadCountMethods( 30 ).setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .threadCountMethods( 30 ).setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void threadCountSuites()
{
// takes 3.6 sec
- unpack().parallelSuites().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ unpack().parallelSuites().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
@@ -265,34 +248,30 @@ public void threadCountClasses()
// takes 3.6 sec for single core
// takes 1.8 sec for double core
unpack().parallelClasses().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void threadCountMethods()
{
// takes 2.4 sec
- unpack().parallelMethods().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ unpack().parallelMethods().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void threadCountClassesAndMethodsOneCore()
{
// takes 4.8 sec
unpack().disablePerCoreThreadCount().parallelClassesAndMethods().threadCount( 3 ).setTestToRun( "Suite*Test" )
- .executeTest()//.verifyErrorFree( 24 )
- ;
+ .executeTest().verifyErrorFree( 24 );
}
@Test
public void threadCountClassesAndMethods()
{
// takes 2.4 sec for double core CPU
unpack().parallelClassesAndMethods().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
@@ -301,23 +280,20 @@ public void threadCountSuitesAndMethods()
// usually 24 times 0.3 sec = 7.2 sec with one core CPU
// takes 1.8 sec for double core CPU
unpack().parallelSuitesAndMethods().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void threadCountSuitesAndClasses()
{
unpack().parallelSuitesAndClasses().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void threadCountAll()
{
- unpack().parallelAll().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ unpack().parallelAll().threadCount( 3 ).setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
@@ -326,35 +302,31 @@ public void everyThreadCountSuitesAndClasses()
// takes 1.8 sec for double core CPU
unpack().parallelSuitesAndClasses().threadCount( 3 ).threadCountSuites( 34 ).threadCountClasses( 66 )
.setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void everyThreadCountSuitesAndMethods()
{
// takes 1.8 sec for double core CPU
unpack().parallelSuitesAndMethods().threadCount( 3 ).threadCountSuites( 34 ).threadCountMethods( 66 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void everyThreadCountClassesAndMethods()
{
// takes 1.8 sec for double core CPU
unpack().parallelClassesAndMethods().threadCount( 3 ).threadCountClasses( 34 ).threadCountMethods( 66 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void everyThreadCountAll()
{
// takes 2.4 sec for double core CPU
unpack().parallelAll().threadCount( 3 ).threadCountSuites( 17 ).threadCountClasses( 34 ).threadCountMethods(
- 49 ).setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ 49 ).setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
@@ -363,8 +335,7 @@ public void reusableThreadCountSuitesAndClasses()
// 4 * cpu to 5 * cpu threads to run test classes
// takes cca 1.8 sec
unpack().parallelSuitesAndClasses().disablePerCoreThreadCount().threadCount( 6 ).threadCountSuites( 2 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
@@ -373,8 +344,7 @@ public void reusableThreadCountSuitesAndMethods()
// 4 * cpu to 5 * cpu threads to run test methods
// takes cca 1.8 sec
unpack().parallelSuitesAndMethods().disablePerCoreThreadCount().threadCount( 6 ).threadCountSuites( 2 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
@@ -383,8 +353,7 @@ public void reusableThreadCountClassesAndMethods()
// 4 * cpu to 5 * cpu threads to run test methods
// takes cca 1.8 sec
unpack().parallelClassesAndMethods().disablePerCoreThreadCount().threadCount( 6 ).threadCountClasses( 2 )
- .setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ .setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
@@ -393,26 +362,23 @@ public void reusableThreadCountAll()
// 8 * cpu to 13 * cpu threads to run test methods
// takes 0.9 sec
unpack().parallelAll().disablePerCoreThreadCount().threadCount( 14 ).threadCountSuites( 2 ).threadCountClasses(
- 4 ).setTestToRun( "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ 4 ).setTestToRun( "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void suites()
{
// takes 3.6 sec
unpack().parallelSuites().threadCountSuites( 5 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void classes()
{
// takes 1.8 sec on any CPU because the suites are running in a sequence
unpack().parallelClasses().threadCountClasses( 5 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
@@ -421,44 +387,39 @@ public void methods()
// takes 2.4 sec on any CPU because every class has only three methods
// and the suites and classes are running in a sequence
unpack().parallelMethods().threadCountMethods( 5 ).setTestToRun( "Suite*Test" ).executeTest()
- //.verifyErrorFree( 24 )
- ;
+ .verifyErrorFree( 24 );
}
@Test
public void suitesAndClasses()
{
// takes 0.9 sec
unpack().parallelSuitesAndClasses().threadCountSuites( 5 ).threadCountClasses( 15 ).setTestToRun(
- "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void suitesAndMethods()
{
// takes 1.2 sec on any CPU
unpack().parallelSuitesAndMethods().threadCountSuites( 5 ).threadCountMethods( 15 ).setTestToRun(
- "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void classesAndMethods()
{
// takes 0.6 sec on any CPU
unpack().parallelClassesAndMethods().threadCountClasses( 5 ).threadCountMethods( 15 ).setTestToRun(
- "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test
public void all()
{
// takes 0.3 sec on any CPU
unpack().parallelAll().threadCountSuites( 5 ).threadCountClasses( 15 ).threadCountMethods( 30 ).setTestToRun(
- "Suite*Test" ).executeTest()//.verifyErrorFree( 24 )
- ;
+ "Suite*Test" ).executeTest().verifyErrorFree( 24 );
}
@Test

0 comments on commit 55b8d91

Please sign in to comment.
Something went wrong with that request. Please try again.