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

Test scope is wrong when triggering tests from inner class level #411

Closed
bsaby opened this issue Nov 7, 2018 · 1 comment
Closed

Test scope is wrong when triggering tests from inner class level #411

bsaby opened this issue Nov 7, 2018 · 1 comment
Milestone

Comments

@bsaby
Copy link

bsaby commented Nov 7, 2018

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
image

@jdneo
Copy link
Member

jdneo commented Nov 8, 2018

There is another issue here:

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).

@bsaby bsaby mentioned this issue Nov 20, 2018
7 tasks
@bsaby bsaby mentioned this issue Dec 10, 2018
8 tasks
@bsaby bsaby mentioned this issue Dec 28, 2018
8 tasks
@jdneo jdneo added this to the 0.14.0 milestone Jan 3, 2019
@jdneo 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
@jdneo jdneo mentioned this issue Jan 7, 2019
7 tasks
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

No branches or pull requests

2 participants