Android Cucumber Espresso

A template project to demonstrate the usage of Cucumber along with Espresso for acceptance testing on Android.
Alternatives To Android Cucumber Espresso
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Green Coffee218
3 years ago1mitJava
Android library that allows you to run your acceptance tests written in Gherkin in your Android instrumentation tests.
Cleanguitestarchitecture135
6 years ago5mitJava
Sample project of Android GUI test automation using Espresso, Cucumber and the Page Object Pattern
Cucumberespressodemo99
5 years agomitJava
A sample project for Cucumber and Espresso in Android
Androidtestingbox62
3 years ago2apache-2.0Java
Android project to experiment various testing tools
Espresso Cucumber47
8 years ago1apache-2.0Java
Library to test Android applications using Espresso test framework with cucumber BDD language and Spoon screenshots
Movies41
4 years ago3apache-2.0Java
Android BDD Espresso + Cucumber
Android Cucumber Espresso12
7 years agoJava
A template project to demonstrate the usage of Cucumber along with Espresso for acceptance testing on Android.
Android_espresso_cucumber1
8 years agoJava
Workshop Android Espresso with Cucumber jvm
No Cucumber1
6 years agoKotlin
A toolset for making your manager happy and staying sane at the same time
Alternatives To Android Cucumber Espresso
Select To Compare


Alternative Project Comparisons
Readme

#android-cucumber-espresso A template project to demonstrate the usage of Cucumber along with Espresso for acceptance testing on Android.

It was strongly inspired by the official example [1] but with one major difference: Activities could be started with a dedicated step definition. This is important if you want to test multiple activities.

Acceptance test in action

##Introduction This talk [2] provides some basic introduction to the domain. It covers an overview of Cucumber, Gherkin, Features, Steps and Espresso.

##Setup In order to incorporate Cucumber into your test routines a few adoptions has to be performed in your project setup:

  • In your build.gradle
  • Specify a dedicated test application id (Note: This is mandatory, it won't work otherwise) and a custom CucumberInstrumentationRunner
testApplicationId "com.android.example.test"
testInstrumentationRunner "com.android.example.test.CucumberInstrumentationRunner"
  • Add assets to your sourceSets so that Cucumber is able to find your features
 sourceSets {
  androidTest { assets.srcDirs = ['src/androidTest/assets'] }
}
  • Add Cucumber dependencies (Note: There is a bug which requires the following declaration)
androidTestCompile('info.cukes:cucumber-android:1.2.4') {
  exclude module: 'cucumber-jvm-deps'
  exclude module: 'guava'
}
androidTestCompile 'info.cukes:cucumber-jvm-deps:1.0.3'

##References

  1. https://github.com/cucumber/cucumber-jvm/tree/master/examples/android/android-studio/Cukeulator
  2. https://speakerdeck.com/a11n/automated-acceptance-testing-with-cucumber-and-espresso
Popular Espresso Projects
Popular Cucumber Projects
Popular Software Quality Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Cucumber
Espresso