Skip to content

Instantly share code, notes, and snippets.

@zawadz88
Last active February 15, 2018 17:09
Show Gist options
  • Save zawadz88/1ec1ec39a420a541618aebeb605e440f to your computer and use it in GitHub Desktop.
Save zawadz88/1ec1ec39a420a541618aebeb605e440f to your computer and use it in GitHub Desktop.
Custom runner using our custom Filter
package com.stepstone.base.test.runner;
import android.os.Bundle;
import android.support.test.runner.AndroidJUnitRunner;
import com.stepstone.base.test.runner.filter.FlavorFilter;
public class MyAndroidJUnitRunner extends AndroidJUnitRunner {
private static final String FILTER_BUNDLE_KEY = "filter";
@Override
public void onCreate(final Bundle bundle) {
bundle.putString(FILTER_BUNDLE_KEY, FlavorFilter.class.getName());
super.onCreate(bundle);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment