mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
Revert to robolectric 3.1.2 as 3.1.3 does not work at all.
This commit is contained in:
parent
e0d78e8208
commit
d442030c2a
@ -60,7 +60,7 @@ dependencies {
|
||||
// testCompile 'ch.qos.logback:logback-core:1.1.3'
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile "org.mockito:mockito-core:1.9.5"
|
||||
testCompile "org.robolectric:robolectric:3.1.3"
|
||||
testCompile "org.robolectric:robolectric:3.1.2"
|
||||
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
compile 'com.android.support:appcompat-v7:23.3.0'
|
||||
|
@ -10,7 +10,6 @@ import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.RuntimeEnvironment;
|
||||
import org.robolectric.annotation.Config;
|
||||
import org.robolectric.shadows.ShadowLog;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@ -41,7 +40,8 @@ public abstract class TestBase {
|
||||
@BeforeClass
|
||||
public static void setupSuite() throws Exception {
|
||||
// print everything going to android.util.Log to System.out
|
||||
ShadowLog.stream = System.out;
|
||||
System.setProperty("robolectric.logging", "stdout");
|
||||
// ShadowLog.stream = System.out;
|
||||
|
||||
// properties might be preconfigured in build.gradle because of test ordering problems
|
||||
String logDir = System.getProperty(Logging.PROP_LOGFILES_DIR);
|
||||
|
Loading…
Reference in New Issue
Block a user