forked tests

This commit is contained in:
Sergey Solovyev 2013-06-18 23:51:35 +04:00
parent 2436572aee
commit bd85440c99
2 changed files with 23 additions and 3 deletions

View File

@ -0,0 +1,21 @@
package org.solovyev.android.calculator;
/**
* User: serso
* Date: 6/18/13
* Time: 8:45 PM
*/
public class TestCalculatorApplication extends CalculatorApplication {
private static volatile boolean initialized = false;
@Override
public void onCreate() {
synchronized (TestCalculatorApplication.class) {
if (!initialized) {
super.onCreate();
initialized = true;
}
}
}
}

View File

@ -265,9 +265,8 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<parallel>classes</parallel>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<forkCount>10</forkCount>
<reuseForks>true</reuseForks>
</configuration>
</plugin>