You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
When running TestNG tests of a specific group, the Allure report shows all disabled tests (status "pending"), even if they are not part of the current group/suite.
For example, take the following TestNG class...
public class GroupTest {
@Test(enabled = false)
public void noGroupDisabled() {}
@Test(groups = "myGroup")
public void myGroup() {}
}
...and suite file:
<suite name="testsuite with groups">
<test name="tests of myGroup">
<groups><run><include name="myGroup"/></run></groups>
<packages><package name=".*"/></packages>
</test>
</suite>
This executes a single test ("myGroup"), so the expected output in the Allure dashboard would be one testcase with status "passed".
Actually, the dashboard shows two testcases: one "passed" and one "pending".
Hint:
In AllureTestListener.addPendingMathods() the "ITestContext.getExcludedMethods()" contains all disabled tests, but only those that are actually part of the current suite should be added...
The text was updated successfully, but these errors were encountered:
martoe
pushed a commit
to martoe/allure-core
that referenced
this issue
Nov 26, 2016
When running TestNG tests of a specific group, the Allure report shows all disabled tests (status "pending"), even if they are not part of the current group/suite.
For example, take the following TestNG class...
...and suite file:
This executes a single test ("myGroup"), so the expected output in the Allure dashboard would be one testcase with status "passed".
Actually, the dashboard shows two testcases: one "passed" and one "pending".
Hint:
In AllureTestListener.addPendingMathods() the "ITestContext.getExcludedMethods()" contains all disabled tests, but only those that are actually part of the current suite should be added...
The text was updated successfully, but these errors were encountered: