cbeust/testng — Issue #174: Suite level groups cannot define meta groups
Author: pstout
Created: 2012-02-21 18:44:38+00:00
State: open

Inclusion of define elements in a groups element at the suite level results in a null pointer exception because the m_currentTest field of the TestNGContentHandler is null when the define end tag is processed. The following XML file will demonstrate the problem:

```xml

```

FYI, to diagnose the bug I had to build a modified version of TestNG, because the verbose setting on the suite element was not being seen/honored by the catch block at the end of the TestNG.privateMain method. As a result with the stock version of TestNG the output is simply:

[TestNG] [ERROR] java.lang.NullPointerException

This issue is reproducible with TestNG 6.3.1 and 6.4.