Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run all the TestNG tests that do not belong to any group (in Maven)?

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..).

like image 515
0x89 Avatar asked Nov 15 '22 04:11

0x89


1 Answers

According to the JIRA, TESTNG-160, try:

exclude="*"'
like image 103
dogbane Avatar answered Dec 18 '22 21:12

dogbane