In Android module,the test dir,
code like this:
@RunWith(RobolectricTestRunner.class)
public class UserTest {
@Test
public void user() {
User user = new User(2, "aaa", 1, "");
assertEquals(2, user.getUserId());
}
}
run jacoco, coverage is zero, but when remove “@RunWith(RobolectricTestRunner.class)”, the coverage is ok,why?how can fix it?