Skip to content

Fix ArrayIndexOutOfBoundsException for empty TestNG suites #145

Description

@GolubNick

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions