Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

Utilities to fill in gaps in the Android test framework.

License

Notifications You must be signed in to change notification settings

twofortyfouram/android-test

Repository files navigation

CircleCI

Overview

android-test implements a variety of classes to fill in gaps in the Android test framework. This library is intended only to be used for test purposes.

API Reference

JavaDocs for the library are published here.

Compatibility

The library is compatible and optimized for Android API Level 15 and above.

Download

Gradle

The library is published as an artifact to jCenter. To use the library, the jCenter repository and the artifact need to be added to your build script.

The build.gradle repositories section would look something like the following:

repositories {
    jcenter()
}

And the dependencies section would look something like this:

dependencies {
    androidTestCompile group:'com.twofortyfouram', name:'android-test', version:'[6.0.1,7.0)'
    androidTestCompile group:'com.twofortyfouram', name:'android-assertion', version:'[2.0.0,3.0)'
}

History

  • 1.0.0: Initial release
  • 1.0.1: Disable running ProGuard, to fix RuntimeInvisibleParameterAnnotations error
  • 1.0.2: Update Android Gradle plugin, which changed the generated BuildConfig
  • 1.0.5: Reupload artifacts with source and JavaDoc for inclusion in jCenter
  • 2.0.0: Changed interface of ActivityTestUtil for the new AndroidJUnitRunner
  • 3.0.0: Changed interface of FeatureContextWrapper to support Android Marshmallow
  • 4.0.0: Removed ActivityTestUtil.getActivityResultCode(); getActivityResultCodeSync() is the correct public API to use.
  • 5.0.0: Bring in latest changes from Locale
    • Added MockableContentProvider to assist in mocking content provider calls
    • Added utility classes to detect Firebase Test Lab and Test Butler
    • Delete MoarAsserts
    • Moved FeatureContextWrapper and ReceiverContextWrapper
    • Min API 9
  • 6.0.0: Bring in latest changes from Locale
    • Espresso 3.0.0
    • Min API 15
    • Deprecated ActivityTestUtil in favor of ActivityTestRule
    • Added UtcRule
    • Added service starts to ReceiverContextWrapper