🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
Create and run unit tests following the project's architecture and guidelines (Robolectric, naming, location).
This skill guides the creation of unit tests to ensuring consistency and correctness.
Analyze and Plan:
Setup Test File:
[OriginalClassName]Test.kt
[module]/src/test/java/[package/path]/
Implement Tests:
Run Tests:
./gradlew :[module]:testDebugUnitTest
./gradlew :database:testDebugUnitTest
./gradlew testDebugUnitTest
Handle Failures:
[module]/build/test-results/testDebugUnitTest/TEST-[package.name.TestClassName].xml
app/build/test-results/testDebugUnitTest/TEST-com.anysoftkeyboard.janus.app.MainActivityTest.xml
test
androidTest