matkk
matkk

Reputation: 133

Android tests without emulator

Is it possible to run some android tests for example: AndroidTestCase without using emulator?

Upvotes: 13

Views: 6167

Answers (3)

Maciej Łopaciński
Maciej Łopaciński

Reputation: 1244

You may want to check Roboelectric.

Upvotes: 2

bruno.braga
bruno.braga

Reputation: 1010

Or you can use external testing frameworks for that, such as Robolectric.

See also: Best practices for unit testing Android apps

Upvotes: 7

CommonsWare
CommonsWare

Reputation: 1007584

You need an Android emulator or Android device to run Android APK files, including those APK files that implement AndroidTestCase subclasses used to test other APK file contents.

Upvotes: 5

Related Questions