Total tests run: 0, Failures: 0, Skips: 0

Open 1 Answers 12 Views
0 1
Most common errors faced in TestNG execution (CI as well as standalone execution):

Error 1 - Results shows 0 test execution count:

[TestNG] Running:



Total tests run: 0, Failures: 0, Skips: 0


Originally posted at: https://www.linkedin.com/feed/update/urn:li:activity:6389872247590490112/

1 Answer

From, Arunkumar Velusamy (https://www.linkedin.com/in/arunkumarvelusamy/)

There are many possible reasons for tests not executed:

1. There is no @Test annotated methods in class given in TestNG suite

2. @Test annotation is imported from JUnit package instead of TestNG

3. @Test method access specifier is not public

4. All tests or dependent tests are marked as "enabled = false". Example: @Test(enabled=false)

5. Classes or packages from which the groups would be picked up is not given; only groups tag is given;
answered by (27 points)
edited by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Top Contributors