我可以运行不属于任何组的所有 TestNG 测试(在 Maven 中)吗?
或者换句话说:
如果未指定组,TestNG 中的测试是否分配给默认组?如果是,该默认组的名称是什么? (是的,我已阅读这篇文章)。
我只想为 TestNG 测试指定一个组,如果它是特殊的(集成、功能、探索性、非常慢)测试。 我想保持单元测试中没有注释。 但我希望能够仅运行单元测试,而无需为所有其他组显式设置 excludedGroups
(可能会添加新组......)。
Or in alternative formulation:
Are tests in TestNG assigned to a default group if no group is specified, and if yes, what is the name of that default group? (Yes, I have read this post).
I want to only specify a group for a TestNG test if it is a special (integration, functional, exploratory, very slow) test.
I want to keep the unit tests clean of annotations.
But I want to be able to only run the unit-tests without explicitly setting excludedGroups
for all the other groups (new ones might be added..).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 JIRA,TESTNG-160,尝试:
According to the JIRA, TESTNG-160, try: