G
G
georgeci2015-03-08 01:43:02
Android
georgeci, 2015-03-08 01:43:02

How to run android unit tests not on device or emulator?

In android studio, by default, the project has a nested project containing, as I understand it, integration tests that are essentially run on a device or emulator that essentially check the functionality of the application that depends on the android SDK. But I have methods independent of android. I would like to test them on the JVM, avoiding launching the emulator as the first stage of testing, and if they are completed, then proceed to testing on the emulator.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aliaksei Trafimchyk, 2015-03-09
@AT547

try robolectric , it just allows you to run tests on JVM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question