Skip to content Skip to sidebar Skip to footer

Android Instrumental Test Running On Emulator But Not On Real Device

I am trying to run android Instrumental Test it seem running on emulator gives test result but on real device its not working and output is 'Test running failed: No test results'

Solution 1:

Before running tests on OnePlus you should go

Settings -> Battery -> Battery optimization -> Your app (not package.test but application) -> Don't optimize -> Done

This will disable background restrictions and tests will work fine.

Post a Comment for "Android Instrumental Test Running On Emulator But Not On Real Device"