Skip to content

Instantly share code, notes, and snippets.

@drewhannay
Created July 18, 2016 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save drewhannay/09fe48ed2f3269fad8cbb9fee7838beb to your computer and use it in GitHub Desktop.
Save drewhannay/09fe48ed2f3269fad8cbb9fee7838beb 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