Code example for AndroidTestRunner

Methods: addTestListener

	/** you can subclass and override this if you want to use a different TestRunner */ 
	protected AndroidTestRunner makeAndroidTestRunner() {
		return new AndroidTestRunner();
    protected AndroidTestRunner getAndroidTestRunner() {
        AndroidTestRunner runner = makeAndroidTestRunner();
        mListener = new JUnitReportListener(getContext(), getTargetContext(), mReportFile, mReportDir, mFilterTraces, mMultiFile);
        return runner;
    public void finish(int resultCode, Bundle results) {
        if (mListener != null) {
Contextual code suggestions in your IDE  Get Codota for Java