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

Can`t find case, if there are no non-parameterized case #183

Open
frh16 opened this issue Nov 15, 2023 · 0 comments
Open

Can`t find case, if there are no non-parameterized case #183

frh16 opened this issue Nov 15, 2023 · 0 comments

Comments

@frh16
Copy link

frh16 commented Nov 15, 2023

public interface V222 {}

@RunWith(WildcardPatternSuite.class)
@SuiteClasses({"**/*Test.class"})
@IncludeCategories({V222.class})
public class SuiteRunner2 {
}

@RunWith(JUnitParamsRunner.class)
public class DTest {

@Test
@Category(V222.class)
@Parameters({"1", "2"})
public void test(String s) {
    System.out.println(s);
}

// if open this case, no exception
// @test
// @category(V222.class)
// public void test2() {
// System.out.println("test2");
// }

}

run SuiteRunner2:
org.junit.runner.manipulation.NoTestsRemainException
at org.junit.runners.ParentRunner.filter(ParentRunner.java:447)
at com.googlecode.junittoolbox.WildcardPatternSuite.(WildcardPatternSuite.java:226)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:107)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
at org.junit.internal.requests.ClassRequest.createRunner(ClassRequest.java:28)
at org.junit.internal.requests.MemoizingRequest.getRunner(MemoizingRequest.java:19)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:50)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)

@frh16 frh16 changed the title Can`t find case, if If there are no non-parameterized use cases Can`t find case, if there are no non-parameterized use cases Nov 15, 2023
@frh16 frh16 changed the title Can`t find case, if there are no non-parameterized use cases Can`t find case, if there are no non-parameterized case Nov 15, 2023
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

1 participant