Code example for AndroidTestRunner

     * Subclass and override this if you want to use a different TestRunner type. 
     * @return the test runner to use 
    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) {
Experience pair programming with AI  Get Codota for Java