Code example for AndroidTestRunner

Methods: addTestListener

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