I have got such 3 groups (3 tests) in my testng project code, for example:
groups = {"iOS", "Android", "Sync"})
groups = {"iOS", "Sync"})
groups = {"Android", "Sync"})
How can I run all tests which contain some groups, for example: "Android" AND "Sync"?
If I run:
mvn clean test -PAndroid -Dgroups=Android,Sync
I will run all 3 tests because this syntax works: "Android" OR "Sync", but I need only the first and the third test to be run.