
It’s quite random regardless of the test order.Īlso, in very rare cases, the crash might not occur and all tests pass. This so-called crash can come as early as right before the 1st test could event start or happen right in the middle of the tests sequence. Test running failed: Instrumentation run failed due to ‘Process crashed.’ Reason: ‘Instrumentation run failed due to ‘Process crashed.’’.

On the emulator, most of the time, a test (as part of a test class file) using mockK feature will fail randomly with the following message:

Using MockK on Android UI Tests should work on any emulator running Android 9+ as it does on physical devices.
