Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple SuiteRunner and TestRunner #2932

Conversation

krmahadevan
Copy link
Member

Closes #2928

Fixes #2928 .

Did you remember to?

  • Add test case(s)
  • Update CHANGES.txt
  • Auto applied styling via ./gradlew autostyleApply

We encourage pull requests that:

  • Add new features to TestNG (or)
  • Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

Note: For more information on contribution guidelines please make sure you refer our Contributing section for detailed set of steps.

@krmahadevan krmahadevan requested a review from juherr as a code owner July 14, 2023 06:50
@krmahadevan krmahadevan merged commit 7dc15af into testng-team:master Jul 14, 2023
@krmahadevan krmahadevan deleted the decouple_suiterunner_from_testrunner branch July 14, 2023 09:03
@missedone
Copy link
Contributor

@krmahadevan , it could be a breaking change for testng-remote https://github.com/testng-team/testng-remote/blob/master/remote7_8/src/main/java/org/testng/remote/support/RemoteTestNG7_8.java#L33-L36
where can I take a testng snapshot jar to test out?

@krmahadevan
Copy link
Member Author

@missedone - I dont think there is going to be any impact because of this change, because SuiteRunner implements the newly added interface.

But you can find the snapshot here to test it out https://oss.sonatype.org/content/repositories/snapshots/org/testng/testng/7.9.0-SNAPSHOT/

@missedone
Copy link
Contributor

just verified that it breaks testng-remote
no worries, i will create the adapter for testing 7.9.0

[RemoteTestNG] detected TestNG version 7.9.0
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.lang.NoSuchMethodError: 'void org.testng.TestRunner.<init>(org.testng.internal.IConfiguration, org.testng.ISuite, org.testng.xml.XmlTest, boolean, java.util.Collection, java.util.List, org.testng.SuiteRunner)'
	at org.testng.remote.support.RemoteTestNG7_8$1.newTestRunner(RemoteTestNG7_8.java:34)
	at org.testng.remote.support.RemoteTestNG7_8$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG7_8.java:67)
	at org.testng.ITestRunnerFactory.newTestRunner(ITestRunnerFactory.java:52)
	at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:720)
	at org.testng.SuiteRunner.init(SuiteRunner.java:224)
	at org.testng.SuiteRunner.<init>(SuiteRunner.java:116)
	at org.testng.TestNG.createSuiteRunner(TestNG.java:1373)
	at org.testng.TestNG.createSuiteRunners(TestNG.java:1347)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
	at org.testng.TestNG.runSuites(TestNG.java:1112)
	at org.testng.TestNG.run(TestNG.java:1080)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The constructor of TestRunner encountered NBC changes in 7.8.0
3 participants