STAMP-project / test-runner

test driver to run JUnit tests isolated in a new JVM
GNU General Public License v3.0
16 stars 15 forks source link

[BUG] cannot use test-runner with JUnit < 4.12 #124

Open danglotb opened 2 years ago

danglotb commented 2 years ago

I tried with JUnit 4.5 and test-runner throws the following error:

Exception in thread "main" java.lang.NoSuchMethodError: org.junit.runner.Description.getMethodName()Ljava/lang/String;
    at eu.stamp_project.testrunner.runner.MethodFilter.shouldRun(MethodFilter.java:29)
    at org.junit.runners.ParentRunner.shouldRun(ParentRunner.java:283)
    at org.junit.runners.ParentRunner.filter(ParentRunner.java:238)
    at org.junit.runner.manipulation.Filter.apply(Filter.java:53)
    at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:35)
    at eu.stamp_project.testrunner.runner.JUnit4Runner.run(JUnit4Runner.java:62)