package org.edx.mobile.test; import android.app.Application; import android.content.Context; import android.os.Bundle; import android.support.test.runner.AndroidJUnitRunner; import com.facebook.testing.screenshot.ScreenshotRunner; public class EdXTestRunner extends AndroidJUnitRunner { @Override public void onCreate(Bundle args) { ScreenshotRunner.onCreate(this, args); super.onCreate(args); } @Override public void finish(int resultCode, Bundle results) { ScreenshotRunner.onDestroy(); super.finish(resultCode, results); } @Override public Application newApplication(ClassLoader cl, String className, Context context) throws InstantiationException, IllegalAccessException, ClassNotFoundException { return super.newApplication(cl, EdxInstrumentationTestApplication.class.getName(), context); } }