Skip to content

Support for JUnit 5 parameterized tests #107

@dsyer

Description

@dsyer

This actually runs:

@RunWith(Parameterized.class)
public class ParamTests {

    @Parameters
	public static List<Object[]> parameters() {
        return Arrays.asList(new Object[] {"foo"}, new Object[] {"bar"});
    }

   public ParamTests(String value) {}

   @Test
   public void test() {
       Assert.assertTrue(true);
   }
}

But the status is "?" and the report says that no tests were run, with no failures.

Logs:

"location":"java:test://com.example.demo.ParamTests"}}>
@@<{"name":"testSuiteStarted", "attributes":{"name":"com.example.demo.ParamTests", "location":"java:test://com.example.demo.ParamTests"}}>
@@<{"name":"testStarted", "attributes":{"name":"test[0]", "location":"java:test://com.example.demo.ParamTests.test[0]"}}>
@@<{"name":"testFinished", "attributes":{"name":"test[0]", "duration":"1"}}>
@@<{"name":"testStarted", "attributes":{"name":"test[1]", "location":"java:test://com.example.demo.ParamTests.test[1]"}}>
@@<{"name":"testFinished", "attributes":{"name":"test[1]", "duration":"0"}}>
@@<{"name":"testSuiteFinished", "attributes":{"name":"com.example.demo.ParamTests"}}>
Total tests run: 2, Failures: 0, Skips: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions