reline
09/15/2017, 1:36 PMreline
09/15/2017, 1:38 PMaaronfox
09/15/2017, 3:07 PMreline
09/15/2017, 3:28 PMdave08
09/17/2017, 5:51 PMorg.junit.platform.commons.util.ClasspathScanner logWarning
WARNING: Failed to load java.lang.Class for path [....] during classpath scanning
The tests still run, but it would be nice not to see any red logs when everything passes...robfletcher
09/18/2017, 5:05 PMersin_ertan
09/22/2017, 7:17 PM0 test classes found in package 'ca.ersin.spek'
Process finished with exit code 254
Empty test suite.
The package and working directory are both point to test module's contents. Any hints?reline
09/22/2017, 7:23 PMersin_ertan
09/22/2017, 7:24 PMreline
09/22/2017, 7:31 PMreline
09/22/2017, 7:33 PMtestCompile 'junit:junit:4.12'
testCompile "org.junit.platform:junit-platform-runner:1.0.0-M4"
testCompile 'org.junit.jupiter:junit-jupiter-api:5.0.0-M4'
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testCompile('org.jetbrains.spek:spek-api:1.1.2') {
exclude group: 'org.jetbrains.kotlin'
}
testCompile('org.jetbrains.spek:spek-junit-platform-engine:1.1.2') {
exclude group: 'org.junit.platform'
exclude group: 'org.jetbrains.kotlin'
}
robfletcher
09/22/2017, 7:34 PMjunitPlatform {
platformVersion junitVersion
filters {
engines {
include "spek"
}
}
}
in your build.gradle?reline
09/22/2017, 7:34 PMersin_ertan
09/22/2017, 7:46 PMtestCompile group: 'junit', name: 'junit', version: '4.12'
be removed from the project if JUnit 5 is being used?robfletcher
09/22/2017, 7:46 PMrobfletcher
09/22/2017, 7:47 PMapply plugin: "org.junit.platform.gradle.plugin"
repositories {
maven { url "<http://dl.bintray.com/jetbrains/spek>" }
}
dependencies {
testCompile "org.jetbrains.spek:spek-api:$spekVersion"
testCompile "org.jetbrains.spek:spek-subject-extension:$spekVersion"
testRuntime "org.junit.platform:junit-platform-launcher:$junitVersion"
testRuntime "org.jetbrains.spek:spek-junit-platform-engine:$spekVersion"
}
junitPlatform {
platformVersion junitVersion
filters {
engines {
include "spek"
}
}
}
ersin_ertan
09/22/2017, 7:47 PMrobfletcher
09/22/2017, 7:49 PMgradle.properties
and currently are spek 1.1.5 and junit 1.1.0)robfletcher
09/22/2017, 7:50 PMtestCompile "org.junit.platform:junit-platform-runner:$junitVersion"
in your build.gradlerobfletcher
09/22/2017, 7:52 PMconfigurations.all {
resolutionStrategy {
eachDependency { details ->
if (details.requested.group == "org.jetbrains.kotlin") {
details.useVersion kotlinVersion
}
}
}
}
robfletcher
09/22/2017, 7:52 PMersin_ertan
09/22/2017, 7:52 PMrobfletcher
09/22/2017, 7:53 PMrobfletcher
09/22/2017, 7:53 PMrobfletcher
09/22/2017, 7:53 PMrobfletcher
09/22/2017, 7:55 PMrobfletcher
09/22/2017, 7:57 PMbuild.gradle
, keiko-test-common/build.gradle
and gradle/spek.gradle
, hopefully not too confusingrobfletcher
09/22/2017, 7:59 PMersin_ertan
09/22/2017, 8:47 PMorg.junit.platform:junit-platform-runner:1.0.0
even though this is not in the build.gradle in the docs, but when mentioned in the docs its for JUnit4 compatibility.
* but if you use gradle tasks to run the tests, then platform runner is not needed, the plugin does the worksnowe
09/22/2017, 9:03 PM