Skip to content

Commit daa2d98

Browse files
author
Sergey Brenko
authored
Merge pull request #57 from zebrunner/develop
1.9.10
2 parents 107751d + ee9b4ec commit daa2d98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/zebrunner/agent/testng/listener/TestRunListener.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ public void beforeConfiguration(ITestResult tr, ITestNGMethod tm) {
9595
if (testMethod instanceof ConfigurationMethod) {
9696
ConfigurationMethod configurationMethod = (ConfigurationMethod) testMethod;
9797

98+
//unable to register test for before suite because all tests reported to the single test
99+
100+
if (configurationMethod.isBeforeClassConfiguration()) {
101+
adapter.registerHeadlessTestStart(tr, tm);
102+
}
103+
98104
if (configurationMethod.isBeforeMethodConfiguration()) {
99105
adapter.registerHeadlessTestStart(tr, tm);
100106
}

0 commit comments

Comments
 (0)