IntelliJ IDEA TestNG include and exclude groups
This posts explains test filtering of TestNG tests in IntelliJ IDEA by including and excluding groups.
Please follow the steps as given below to create configuration to run multiple tests in your project / module:
Please follow the steps as given below to create configuration to run multiple tests in your project / module:
- Click Run menu
- Select Edit Configurations..
- Click + icon (Add New Configuration)
- Select TestNG
- Set Name as Groups
- Change Test Kind: to Pattern
- Set Pattern: to com.harishkannarao.* (your project's root package)
- Set Test runner params: as -groups "API_INTEGRATION_TEST,WEB_INTEGRATION_TEST" -excludegroups "AUTH_API_INTEGRATION_TEST"
- Click OK
Running the configuration:
- Click Run menu
- Select Run...
- Select Groups
Comments
Post a Comment