public class JUnit5Runner
Integration code for running JUnit5 tests in Groovy.
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
canRun(Class<?> scriptClass, GroovyClassLoader loader)Utility method to check via reflection if the parsed class appears to be a JUnit5 test, i.e. checks whether it appears to be using the relevant annotations. |
|
Object |
run(Class<?> scriptClass, GroovyClassLoader loader)Utility method to run a JUnit 5 test. |
Utility method to check via reflection if the parsed class appears to be a JUnit5 test, i.e. checks whether it appears to be using the relevant annotations.
scriptClass - the class we want to checkloader - the GroovyClassLoader to use to find classesUtility method to run a JUnit 5 test.
scriptClass - the class we want to run as a testloader - the class loader to use