Registry / testing / testng

testng

JSON →
library7.12.0javamavenunverified

Testing framework for Java inspired by JUnit and NUnit, supporting annotations, data-driven testing, and parallel execution.

<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>7.12.0</version> </dependency>
INSTALL
IMPORT
SIG · TESTNG
T
testng
testingjavav7.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Test
✓ org.testng.annotations.Test

A simple TestNG test using the @Test annotation.

import org.testng.annotations.Test; import static org.testng.Assert.assertEquals; public class ExampleTest { @Test public void testAddition() { assertEquals(2, 1 + 1); } }
Debug
Known issues
gotchaTestNG annotations differ from JUnit; mixing them can cause confusion.
fix
Use only TestNG annotations in TestNG tests; avoid importing JUnit annotations.
affects: >=6.0.0
Upgrade
Version history
7.12.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
testng — mvn dependency:get testng · libregistry