JUnit Platform Test Engine launching Java programs
Usage
- Write a plain Java program under
src/test/java
- Include Mainrunner at test runtime
Gradle Kotlin DSL snippets
dependencies {
testImplementation("de.sormuras.mainrunner:de.sormuras.mainrunner.engine:$VERSION") {
because("executes Java programs as tests")
}
}
Only needed for versions not available on Maven Central
repositories {
mavenCentral()
maven(url = "https://dl.bintray.com/sormuras/maven") {
content {
includeGroup("de.sormuras.mainrunner")
}
}
}