Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我正在尝试将 TestNG 与 RoboElectric 集成,但有点卡住了。
网站上的示例显示了如何为 JUnit 而不是为 TestNG 执行此操作。
@RunWith 但是在 TestNG 中不存在。
有人可以粘贴如何将 RoboElectric 与 TestNG 集成的快速演示吗?
我刚查了这个RoboelectricTestRunner
我认为确保 TestNG 设置方法提供所有功能没有问题。
我推荐一个抽象的测试超类,它封装了所有需要的功能