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

@RunWith(SerenityParameterizedRunner.class) not execute the test #2381

Closed
Deniss22605 opened this issue Feb 3, 2021 · 3 comments
Closed

Comments

@Deniss22605
Copy link

Deniss22605 commented Feb 3, 2021

When I'm trying to run the automated test, by using @RunWith(SerenityParameterizedRunner.class), I'm retrieving the following error:
java.lang.Exception: No tests found matching Method ... from org.junit.internal.requests.ClassRequest

Project configuration:

  1. Serenity BDD Version: 2.3.12
  2. Serenity JUnit Version: 2.3.12
  3. JUnit Version: 4.12

Note: When I use @RunWith(SerenityRunner.class) no error happens.

@SiKing
Copy link
Contributor

SiKing commented Mar 10, 2021

Did you define @TestData and a constructor that consumes it?
https://serenity-bdd.github.io/theserenitybook/latest/junit-data-driven.html

@Jacobvu84
Copy link
Contributor

Jacobvu84 commented Apr 25, 2021

@Deniss22605
Can you give your test class name ?

@vinhtrangithub
Copy link

same issue

java.lang.Exception: No tests found matching Method findCarNameandPriceTest(testcases.CarPriceTest) from org.junit.internal.requests.ClassRequest@38aa816f

at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)

at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)

at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)

at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)

at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)

@wakaleo wakaleo closed this as completed Feb 12, 2022
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

5 participants