Skip to content

Commit

Permalink
beforeConfiguration() listener method should be invoked for skipped c…
Browse files Browse the repository at this point in the history
…onfigurations as well

Fixes #2729
  • Loading branch information
bj-9527 committed Feb 18, 2022
1 parent f201ec7 commit 6fabe57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
@@ -1,12 +1,12 @@
package test.configuration.issue2729;

import org.testng.IConfigurationListener;
import org.testng.IInvokedMethod;
import org.testng.IInvokedMethodListener;
import org.testng.ITestListener;
import org.testng.ITestResult;

public class BeforeConfigSampleListener implements ITestListener, IInvokedMethodListener, IConfigurationListener {
public class BeforeConfigSampleListener
implements ITestListener, IInvokedMethodListener, IConfigurationListener {
public static int count = 0;

@Override
Expand Down
Expand Up @@ -9,14 +9,12 @@
public class BeforeConfigTestSample {
@BeforeClass
public void beforeClass() {
int i = 5/0;
int i = 5 / 0;
}

@BeforeMethod
public void beforeMethod() {}

@Test
public void sampleTest() {

}
public void sampleTest() {}
}

0 comments on commit 6fabe57

Please sign in to comment.