Confirmed users
975
edits
| Line 88: | Line 88: | ||
=== integration tests === | === integration tests === | ||
You can run specific tests locally in the IDE by selecting the "Build Variants" menu (bottom left), changing "Test Artifact" to "Android Instrumentation Tests", right-clicking on the test class you want to run, and selecting the "Run <test-class>" option. | * Run from the IDE: You can run specific tests locally in the IDE by selecting the "Build Variants" menu (bottom left), changing "Test Artifact" to "Android Instrumentation Tests", right-clicking on the test class you want to run, and selecting the "Run <test-class>" option. | ||
* There is no way to run these tests from the command line | |||
These do not run in automation so junit tests (via robolectric) or robocop tests (which are integration tests with a UI component) are generally preferred. | * These do not run in automation so junit tests (via robolectric) or robocop tests (which are integration tests with a UI component) are generally preferred. | ||
=== robocop UI tests === | === robocop UI tests === | ||