Class TestExtension


  • public class TestExtension
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean enableIntegrationTests
      Enable creation of integrationTest rules for modules with `integrationTest` folder
      boolean espresso
      Enable generation of espresso test rules.
      boolean espressoForLibraries
      Enable generation of espresso test rules on android libraries.
      boolean robolectric
      Enable generation of robolectric test rules.
      java.util.Set<java.lang.String> robolectricApis
      Choose only a specific subset of robolectric API levels to download.
      java.lang.String robolectricPreinstrumentedVersion
      Specify the preinstrumented version of artifacts to be used.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestExtension()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • robolectric

        public boolean robolectric
        Enable generation of robolectric test rules.
      • robolectricApis

        @Nullable
        public java.util.Set<java.lang.String> robolectricApis
        Choose only a specific subset of robolectric API levels to download. Default is all api levels
      • robolectricPreinstrumentedVersion

        public java.lang.String robolectricPreinstrumentedVersion
        Specify the preinstrumented version of artifacts to be used. Hardcoded in Robolectric https://github.com/robolectric/robolectric/blob/master/robolectric/src/main/java/org/robolectric/plugins/DefaultSdkProvider.java#L50
      • espresso

        public boolean espresso
        Enable generation of espresso test rules.
      • espressoForLibraries

        public boolean espressoForLibraries
        Enable generation of espresso test rules on android libraries.
      • enableIntegrationTests

        public boolean enableIntegrationTests
        Enable creation of integrationTest rules for modules with `integrationTest` folder
    • Constructor Detail

      • TestExtension

        public TestExtension()