Various technical articles, IT-related tutorials, software information, and development journals
Thursday, March 29, 2018
Trying to run only a dependent TestNG test may fail with "nonexistent group"
The IntelliJ IDE allows you to select a specific TestNG test to run. One person, attempting to run a test, received an error saying the test method "depends on a nonexistent group" even though the prerequisite group was definitely in the test suite. The problem is that IntelliJ doesn't include dependent tests in the impromptu battery of tests when preparing to run a specific test, so TestNG thinks the prerequisites don't exist and fails. Running the entire test suite works fine.
Labels:
misc
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment