Last active
February 15, 2018 17:09
-
-
Save zawadz88/1ec1ec39a420a541618aebeb605e440f to your computer and use it in GitHub Desktop.
Custom runner using our custom Filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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