RoboElectric 2 instrumentation measurement error in IntelliJ

I have a simple Android project that uses RoboElectric 2 and Maven.

I can run my tests with:

mvn clean test 

but tests do not run inside IntelliJ IDEA. I get this strange error when trying to run 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 correctly on the device inside IntelliJ.

+4
source share
1 answer

“Cannot find toolkit” suggests that you are trying to run this as a test for Android - is that so? It should run as a JUnit test (using RoboElectric assumes you wrote standard unit tests)

+1
source

Source: https://habr.com/ru/post/1483567/


All Articles