Skip to content

Instantly share code, notes, and snippets.

@danielhitome
Forked from drewhannay/ExampleTestRunner.java
Created August 4, 2016 18:13
Show Gist options
  • Select an option

  • Save danielhitome/b4ca996fb7c4ffd27c2cc873b4e0d878 to your computer and use it in GitHub Desktop.

Select an option

Save danielhitome/b4ca996fb7c4ffd27c2cc873b4e0d878 to your computer and use it in GitHub Desktop.
package com.linkedin.util;
import android.os.Bundle;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnitRunner;
import com.linkedin.android.testbutler.TestButler;
public class ExampleTestRunner extends AndroidJUnitRunner {
@Override
public void onStart() {
TestButler.setup(InstrumentationRegistry.getTargetContext());
super.onStart();
}
@Override
public void finish(int resultCode, Bundle results) {
TestButler.teardown(InstrumentationRegistry.getTargetContext());
super.finish(resultCode, results);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment