@Override protected AndroidTestRunner getAndroidTestRunner() { Log.d(TAG, "Getting android test runner"); AndroidTestRunner runner = super.getAndroidTestRunner(); if (junitOutputEnabled && !justCount && !logOnly) { Log.d(TAG, "JUnit test output enabled"); outputEnabled = true; runner.addTestListener(new JunitTestListener()); } else { outputEnabled = false; Log.d(TAG, "JUnit test output disabled: [ junitOutputEnabled : " + junitOutputEnabled + ", justCount : " + justCount + ", logOnly : " + logOnly + " ]"); } return runner; }
@Override protected AndroidTestRunner getAndroidTestRunner() { AndroidTestRunner runner = makeAndroidTestRunner(); mListener = new JUnitReportListener(getContext(), getTargetContext(), mReportFile, mReportDir, mFilterTraces, mMultiFile); runner.addTestListener(mListener); return runner; }
@Override protected AndroidTestRunner getAndroidTestRunner() { Log.d(LOG_TAG, "getAndroidTestRunner"); AndroidTestRunner testRunner = super.getAndroidTestRunner(); testRunner.addTestListener(new BrowserTestListener()); return testRunner; }
@Override protected AndroidTestRunner getAndroidTestRunner() { Log.d(TAG, "Getting android test runner"); runner = super.getAndroidTestRunner(); if (junitOutputEnabled && !justCount && !logOnly) { Log.d(TAG, "JUnit test output enabled"); outputEnabled = true; runner.addTestListener(new JunitTestListener()); } else { outputEnabled = false; Log.d(TAG, "JUnit test output disabled: [ junitOutputEnabled : " + junitOutputEnabled + ", justCount : " + justCount + ", logOnly : " + logOnly + " ]"); } return runner; }
/** you can subclass and override this if you want to use a different TestRunner */ protected AndroidTestRunner makeAndroidTestRunner() { return new AndroidTestRunner(); }
/** * Provides access to the underlying AndroidTestRunner. */ public AndroidTestRunner getAndroidTestRunner() { return bridgeTestRunner.getAndroidTestRunner(); }
@Override public AndroidTestRunner getAndroidTestRunner() { return myAndroidTestRunner; }
@Override protected AndroidTestRunner getAndroidTestRunner() { this.runner = super.getAndroidTestRunner(); runner.addTestListener(new CustomTestListener()); return runner; }