Espresso | Run only LargeTest

Filter test run to tests without given annotation : small | medium | large

Step-by-step guide

If you run stand-alone Gradle Espresso tests:  GitHub StandAlone RemoteRunSample

In the InstrumentationArgs of the Json configuration file, use notAnnotation and specify the fully qualified path of  Small | Medium or LargeTest,

Copy
"instrumentationArgs" : ["notAnnotation=android.support.test.filters.LargeTest"],

This way, you do not have to use the testSize parameter, which does not allow multiple values, and you can run all other tests but the filtered annotation type.

Related articles