Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stopping Android studio shell process wont stop tests

I am executing a some gradle tasks from a shell script, and am finding that i am unable to kill the process:

enter image description here

I click stop process like shown in the image, but it doesnt stop the Espresso UI tests from executing on the emulator. the shell script is as simple as "./gradlew spoonDebugAndroidTest"

Is there someway i can stop the tests without closing the emulator, and get rid of the red box saying i have process running?

like image 560
1ak31sha Avatar asked Jul 12 '16 13:07

1ak31sha


People also ask

How do I stop a test running in terminal?

You can try to execute this in Android Studio's Terminal : ./gradlew --stop . It should stop all running tasks.

How to see test coverage Android Studio?

View test coverage To run tests with coverage, follow the same steps as described in Run tests, only instead of clicking Run , click Run test-name with coverage . In the Project window, this option might be hidden behind More Run/Debug.


1 Answers

That can be fixed by following these steps:

  1. Open 'Run' tab in Android Studio
  2. Tap 'X' next to test which has just passed

Android Studio guide

like image 114
Eugene Brusov Avatar answered Sep 19 '22 12:09

Eugene Brusov