Testingarchitecture
Skeleton for an Android project with Espresso + JUnit + Robolectric tests
Install / Use
/learn @malmstein/TestingarchitectureREADME
This is a simple project which shows an architecture used to run different types of tests
The project has three different modules
/app- The Android application with instrumentation tests using Espresso and Spoon/core- A plain Java module which could allocate Java code such as HttpRequests, JSON parsers, etc. and runs JUnit tests/robolectric-tests- Robolectric tests for the/appmodule
Espresso tests can be run using:
./gradlew connectedCheck
./gradlew connectedAndroidTest
Spoon tests can be run using:
./gradlew spoon

JUnit and Robolectric tests can be ran using one of the following:
./gradlew test
./gradlew check
./gradlew build
JaCoCo reports can be generated for both /core and /robolectric-tests running:
./gradlew test jacoco
./gradlew check jacoco
./gradlew build jacoco
This project is an iteration on what can be found in here: http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
