Fix an ArrayIndexOutOfBoundsException that occurs when a TestNG suite file is executed but its suites/tests do not contain any test methods. The listener should safely handle an empty result of context.getAllTestMethods() without attempting to access the first element.
Fix an ArrayIndexOutOfBoundsException that occurs when a TestNG suite file is executed but its suites/tests do not contain any test methods. The listener should safely handle an empty result of context.getAllTestMethods() without attempting to access the first element.