Inspectopedia 2024.3 Help

TestNG

Data provider problems   New in this release

Reports references to data provider methods that do not exist or are not accessible.

Duplicated data provider names   New in this release

Reports TestNG data providers with equal names if org.testng.TestNGException has occurred.

Expected exception never thrown in test method body  

Reports checked exceptions expected by a TestNG test method that are never thrown inside the method body.

Illegal method name passed to 'dependsOnMethods'   New in this release

Reports illegal method names passed to the dependsOnMethods attribute in the @Test annotation.

Invalid data provider return type   New in this release

Reports methods marked with @DataProvider annotation that doesn't return Object[][] or Iterator<Object>.

JUnit Test can be converted to TestNG   New in this release

Reports any JUnit-based test class that can be converted into TestNG based unit test.

Old TestNG annotation @Configuration is used   New in this release

Reports TestNG org.testng.annotations.Configuration annotations.

TestNG Javadoc can be converted to annotations   New in this release

Asserts your TestNG tests with Javadoc annotations and converts them to JDK annotations.

Undeclared test   New in this release

Reports test classes that are not registered in testing.xml.

Undefined group name   New in this release

Reports undefined group names passed to the dependsOnGroups or groups attributes in the @Test annotation.

Last modified: 11 September 2024