我有一个正在测试的应用程序项目和一个测试应用程序项目(在 Android 上)。
我的测试应用程序包含很多测试,但我想找到一种机制来从测试启动(从 eclipse 启动)中排除测试或测试类。
我知道我可以根据注释排除命令行上的测试,或者使用 ant 排除类,但我没有这种配置并且想直接从 eclipse 中排除它们)。
是否可以使用 eclipse android-junit 启动配置从测试应用程序中排除一个测试或一组测试?
提前致谢 !
Android JUnit Test 启动配置缺乏功能,目前仅支持配置运行所有测试或单个测试类。
Alternatively, instead of trying to include/exclude tests right before junit run time, we can include/exclude specific test source files at project build time by configuring project build path in Eclipse, right-click your test project, go to Build Path -- Configure Build Path, in the Source tab, edit Excluded section and add multiple test source files, this will exclude the test source files from your project build path and finally exclude them when you start running Android JUnit test:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)