Test running failed: Unable to find instrumentation info for: ComponentInfo{} — error trying to test in IntelliJ with Gradle

后端 未结 10 1874
野的像风
野的像风 2021-02-01 01:14

Everytime I try to run my tests the console says this:

Running tests
Test running startedTest running failed: Unable to find instrumentation info for:
ComponentI         


        
10条回答
  •  执念已碎
    2021-02-01 01:38

    The solution for my problem is to change the method name from

    @Test
    public void test() {
        ...
    }
    

    to

    @Test
    public void testSomething() {
        ...
    }
    

    Hope it helps someone.

提交回复
热议问题