Skip to content

Attempting to rerun failing JUnit 4 Parameterized tests in IDEA fails #1604

@Panthro

Description

@Panthro

When I have a test with

@Parameterized.Parameters(name = "{1} : {0}")

If I try to rerun failed tests in Intellij Idea, then I get:

java.lang.Exception: No tests found matching Tests from org.junit.runner.Request$1@5ae50ce6

	at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

If I leave the @Parameterized.Parameters without name it works, any idea?

Found a Junit5 related issue, junit-team/junit-framework#1386

Junit version 4.12, can this be related or should I open another issue?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions