Hello everyone, I am facing one issue related to t...
# kotlintest
k
Hello everyone, I am facing one issue related to test cases. My Android project has more than 250 tests. Most of them include API mocking & some of them are unit tests. In Android Studio when I run the individual test class, all tests in that class succeed. But when I run the entire test package(altogether), some of the tests fail randomly. The project has
MockWebSerever
&
Awaitility
to handle API mocking & async operation. The
.gradle
file also has Android Orchestrator & clearPackageData declared. Still, the issue persists. Can someone help me to fix this issue?
d
My gut reaction is that some tests are influencing some global variables some where.
Or you could have a race condition happening. In the isolated test everything runs fast but perhaps something is being slowed down when all the tests run together.