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
Normal when triggering the test of inner class in a test file
But when trigger inner class in test explorer, it will run all tests including other methods under the outer class
The text was updated successfully, but these errors were encountered:
I tested the inner class case in a TestNG project, the TestNG runner cannot find the classpath, which says:
[ERROR] org.testng.TestNGException:
Cannot find class in classpath: com.mkyong.testng.examples.suite.TestDatabase.InnerClass
at org.testng.xml.XmlClass.loadClass(XmlClass.java:81)
at org.testng.xml.XmlClass.init(XmlClass.java:73)
at org.testng.xml.XmlClass.init(XmlClass.java:63)
at org.testng.xml.XmlClass.<init>(XmlClass.java:39)
at com.microsoft.java.test.runner.testng.TestNGRunner.createClass(TestNGRunner.java:52)
at com.microsoft.java.test.runner.testng.TestNGRunner.createTests(TestNGRunner.java:46)
at com.microsoft.java.test.runner.testng.TestNGRunner.run(TestNGRunner.java:31)
at com.microsoft.java.test.runner.testng.TestNGLauncher.execute(TestNGLauncher.java:32)
at com.microsoft.java.test.runner.Launcher.main(Launcher.java:53).
jdneo
changed the title
Will run all tests of outer class when trigger inner class in test explorer
Test scope is wrong when triggering tests from inner class level
Jan 3, 2019
Normal when triggering the test of inner class in a test file
But when trigger inner class in test explorer, it will run all tests including other methods under the outer class
The text was updated successfully, but these errors were encountered: