I am using spoon runner for executing my test cases developed using Espresso and UI automator. I have around 200 test cases. Most of the time execution is crashed due to out of memory issue. When I checked Android memory monitor, there is only 128 MB of heap space is available. Can we increase this heap space? Or is there any method to clear heap space right after each test completed?
I have tried setting android:largeHeap="true". Can I enable it only for automation?