During unit test, the test status in Android studio 2.0 has terminated without any failure message

Question:

I upgraded from 1.5 to Android studio 2.0 on Ubuntu yesterday. When I performed unit tests in Android studio 2.0, even if all tests passed, it will display the terminated test status. Sometimes it only displays some tests that passed. I'm very sure my code can work normally and the tests are correct, because I made the same settings on Android studio 1.5

For example, I have 22 tests. Sometimes all 22 tests passed is displayed, 21 of 22 tests passed is displayed in the next run, and sometimes stopped. 20 of 22 tests passed is displayed. Even if I have 22 tests, sometimes all 20 tests passed is displayed. All this happens randomly. No fault message is displayed

Solutions tried so far:

I found the answer about Android studio on a similar IntelliJ issue. Converting "run now to hot plug" can solve this problem. But it doesn't solve the problem

I tried to run the test in Android studio 1.5, but there was no problem

Has anyone encountered such problems in Android studio 2.0, and have you found a solution? Thank you for any help. Thank you!

resolvent:

This sounds like a known error. The description in the error report does not mean that some tests will not run occasionally. [1] I encountered a similar problem, but all tests have run

The method in Android studio 2.1 seems to have been fixed

[1] https://code.google.com/p/android/issues/detail?id=201968

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>