For two months or so now I haven't been able to run individual UI tests in Android Studio. Right clicking on the test name and then run <test name>
just give me the error No tests were found
. If I right click on the class name and then click run <testing class name>
, it successfully runs all the tests in the class. So in order to just run an individual test in a class I have to resort to commenting out all the tests I don't want to run and then clicking on run from the class name which is a pain. This used to work fine a couple of months ago.
I really don't have much more information to go off of. The only output is
Connected to the target VM, address: '127.0.0.1:49178', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:49178', transport: 'socket'
Process finished with exit code 1
Class not found: "com.mypackagename.android.TestClassName"