What to do to ignore a test case in Android?

Hi, I was just working on graphical test cases in which we can use @Ignoreto ignore test cases. My question is what can we do in the case of android unit test for Android toolkit for AndroidTestCase, is it @Suppressfor android test cases are the same as Robolectric @Igore? please give me some information i already visited

Use @Ignore in AndroidTestCase

+4
source share
3 answers

AndroidTestCase is a kind of JUnit3 that has no analogue of JUnit4 @Ignore. The simplest workaround is to rename your testXXX () method to ignoreXXX (). This should help, as JUnit 3 only runs the method with the prefix "test".

+3
source

You can use @Suppress for a test case class or individual test methods to suppress test execution.

+5
source

2017 , @santos @Test, .

+1

Source: https://habr.com/ru/post/1532602/


All Articles