groodt
groodt

Reputation: 1993

Instrumentation error running RoboElectric 2 tests in IntelliJ

I have a simple Android project that makes use of RoboElectric 2 and Maven.

I am able to run my tests fine using:

mvn clean test

but the tests fail to run inside IntelliJ IDEA . I get this strange error when attempting to run the tests from IntelliJ IDEA

Running tests
Test running startedTest running failed: Unable to find instrumentation info for: ComponentInfo{com.example/android.test.InstrumentationTestRunner}
Empty test suite.

I get no other errors in the IDE and everything compiles and deploys to device correctly from within IntelliJ.

Upvotes: 4

Views: 1041

Answers (1)

Olek
Olek

Reputation: 168

"Unable to find instrumentation" suggests you try to run this as Android test - is it the case? It should be run as JUnit test (usage of RoboElectric suggests you've written standard unit tests)

Upvotes: 1

Related Questions