使用@Ignore在AndroidTestCase [英] Use @Ignore in AndroidTestCase
本文介绍了使用@Ignore在AndroidTestCase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过一些单元测试与AndroidTestCase工作我的方式,并想知道,如果它可以使用忽略注解,我读过有关junit4?只需使用注释给出了一个错误,也许,有一些特别的东西看出来?
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
推荐答案
您可以使用 @燮preSS
的测试用例类或单个测试方法晚饭preSS测试执行。
You can use @Suppress
on the test case class or individual test methods to suppress test execution.
这篇关于使用@Ignore在AndroidTestCase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文