Skip to content

Instantly share code, notes, and snippets.

View schnatterer's full-sized avatar

schnatterer

View GitHub Profile
@schnatterer
schnatterer / LibraryProjectTestRunner.java
Last active October 15, 2016 12:50 — forked from venator85/LibraryProjectTestRunner.java
A Robolectric test runner for library projects compatible with Android Gradle plugin 2.2.0-alpha6 and later
import org.junit.runners.model.InitializationError;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import org.robolectric.internal.bytecode.InstrumentationConfiguration;
import org.robolectric.manifest.AndroidManifest;
import org.robolectric.res.FileFsFile;
import org.robolectric.res.FsFile;
public class LibraryProjectTestRunner extends RobolectricTestRunner {