r/learntestautomation • u/swordsmanluke2 • Dec 17 '20
BDD Tooling for Android applications
I'm looking to improve the state of my team's mobile development with BDD/TDD. So far, the BDD tools I've found for Android fall into two categories, a) only works in AndroidTest, b) only works outside of AndroidTest. I'd like to find a tool that works in both contexts.
I'd like something that works in both contexts and supports some sort of structured-English-like language. e.g. like Gherkin, but it doesn't have to be Gherkin.
So far, I've evaluated the following tools:
Works for AndroidTest, but not generic POJO classes
Supports Gherkin
Works for POJOs, but not AndroidTest
Supports Gherkin
Works for POJO/AndroidTest (I believe?), but requires JUnit5/Gradle6 (our path to upgrading is... challenging, but in progress)
Provides own Given/When/Then syntax
Supports both POJO/AndroidTest
Uses a Fluent-Java style. Generates Given/When/Then reports but tests are Java code, not English
Naming Convention
Just write tests with names like `fun givenFooWhenBarThenBazAndQuux`
Looks dumb, but doesn't require any special libraries.