mardi 3 septembre 2019

How to run single test method in android instrumented test class and how to change edit configuration for this

I have written multiple test methods in a single android instrumented test class, when I am trying to run a single test method it will run all methods exists in that class. I want to run only one.

Earlier I was able to run all, but somehow configuration settings have been changed

class HistoryTest{

@Test
fun openHistoryTest{
}

@Test
fun closeHistoryTest{
}

@Test
fun editHistoryTest{
}
}

I want to run a specific single test method say openHistoryTest. Currently getting an error - the command line is too long shorten the command line for test "testname"

Aucun commentaire:

Enregistrer un commentaire