Search code examples
androidunit-testingannotations

Use @Ignore in AndroidTestCase


I'm working my way through some unit testing with AndroidTestCase and was wondering, if it's possible to use the ignore-annotation, that I've read about for junit4? Just using the annotation gives an error, maybe, there's something special to look out for?

Thanx in advance, Marcus


Solution

  • You can use @Suppress on the test case class or individual test methods to suppress test execution.