robfletcher
07/09/2018, 9:00 PMspek-runner-junit5
not spek-junit5-runner
robfletcher
07/20/2018, 5:22 PMGiven
not a synonym for beforeGroup
/ beforeEachTest
? It seems like that would make sense. For example it’s where I’d want to initialize mocks.christophsturm
07/25/2018, 1:53 PMrobfletcher
08/14/2018, 6:31 PMorg.reflections.ReflectionsException: could not create class object from file org/joda/time/tz/data/Etc/GMT-3
at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:32)
at org.reflections.Reflections.scan(Reflections.java:253)
at org.reflections.Reflections.scan(Reflections.java:202)
at org.reflections.Reflections.<init>(Reflections.java:123)
at org.spekframework.spek2.runtime.SpekRuntime.createReflections(SpekJvmRuntime.kt:68)
at org.spekframework.spek2.runtime.SpekRuntime.discover(SpekJvmRuntime.kt:29)
at org.spekframework.spek2.junit.SpekTestEngine.discover(SpekTestEngine.kt:37)
at org.junit.platform.launcher.core.DefaultLauncher.discoverEngineRoot(DefaultLauncher.java:130)
at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:117)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:74)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.reflections.ReflectionsException: could not create class file from GMT-3
at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:102)
at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:24)
at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:30)
... 13 common frames omitted
Nikky
08/31/2018, 1:25 AMNikky
08/31/2018, 6:23 PMval entryList by memoized { ... }
entryList.forEach { entry ->
it("test a") {
assert(entry.a)
}
}
which breaks.. instead one has to not change the tests at runtime, which leads to loops inside the it
or is there a third option i am missing ?Nikky
09/01/2018, 12:25 PMorg.junit.platform.launcher.core.DefaultLauncher handleThrowable
WARNING: TestEngine with ID 'spek2' failed to discover tests
java.lang.NoClassDefFoundError: kotlin/streams/jdk8/StreamsKt
when i just tried to upgrade the spek versionhmole
09/02/2018, 5:22 PMkotlin-multiplatform
https://discuss.kotlinlang.org/t/kotlin-1-3-m2-new-multiplatform-projects-model/9264 plugin?Nikky
09/06/2018, 6:00 PMjk2018
09/24/2018, 8:57 PMraniejade
09/30/2018, 6:27 AM2.0.0-rc.1
release - changelog can be found here: https://github.com/spekframework/spek/releases/tag/2.0.0-rc.1.raniejade
10/05/2018, 9:11 AMinclude
? I've removed it in 2.x
, but if it is something widely used then I'll bring it back.sebastien.rouif
10/05/2018, 2:16 PMgiven
to describe the context. I had a look at the migration steps on https://spekframework.org/migration/#given-on-it it feels like the Given
in the Scenario
is the equivalent of the `given`(s) but it doesn’t seem like I can chain them. Am i correct ?robfletcher
10/05/2018, 3:00 PMLeonell
10/10/2018, 11:59 AMjasper
10/10/2018, 11:44 PMCaused by: java.lang.ClassNotFoundException: kotlin.io.CloseableKt
Sartori
10/11/2018, 5:42 PMrobfletcher
10/12/2018, 1:10 PMrobfletcher
10/12/2018, 4:48 PMSpek
is the one you want I think. It has 18k downloads compared to 466.dave08
10/14/2018, 5:05 PMEmpty test suite
, is this a known issue? Is there some kind of workaround?jasper
10/15/2018, 12:05 AMrobstoll
10/21/2018, 11:31 AMrobstoll
10/30/2018, 5:50 PMmarcelo
11/09/2018, 7:49 PMTransitvely
depended on an old version of kotlin-reflect
, is this still the case with spek2
?marcelo
11/19/2018, 4:12 PMspek2
and when I ran the tests using gradle but it shows as if I have zero tests when I run it:
> Task :kotlin:video_renderer:junitPlatformTest
Test run finished after 4 ms
[ 0 containers found ]
[ 0 containers skipped ]
[ 0 containers started ]
[ 0 containers aborted ]
[ 0 containers successful ]
[ 0 containers failed ]
[ 0 tests found ]
[ 0 tests skipped ]
[ 0 tests started ]
[ 0 tests aborted ]
[ 0 tests successful ]
[ 0 tests failed ]
my dependencies file are here:
ext {
versions = [
...
spek : '2.0.0-rc.1',
]
libraries = [
...
spekApi : [
dependencies.create("org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1") {
exclude group: 'org.jetbrains.kotlin'
}
],
spekJUnitPlatformEngine : [
dependencies.create("org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1") {
exclude group: 'org.junit.platform'
exclude group: 'org.jetbrains.kotlin'
},
],
this is the configuration that I have for one of my app:
apply from: "$rootDir/build-scripts/kotlin-library.gradle"
kotlin {
experimental {
coroutines 'enable'
}
}
dependencies {
compile project(':kotlin:common:file_utils')
compile project(":kotlin:render_master:publicapi")
compile project(':kotlin:couch_api')
compile project(':kotlin:video_renderer:public_api')
compile libraries.kotlinStdlib
compile libraries.slf4j
compile libraries.kotlinCoroutinesCore
testCompile project(':kotlin:video_renderer')
testCompile libraries.spekApi
testCompile libraries.truth
testRuntime libraries.logback
}`
Sartori
11/23/2018, 12:04 PMdewildte
11/25/2018, 6:33 PMrobstoll
11/25/2018, 7:46 PMtapchicoma
12/04/2018, 12:15 PMCachingMode.INHERIT
should be used?Marc Knaup
12/12/2018, 1:04 PMit()
blocks is horribly slow when run with Gradle+JUnit (15min) but quite fast when run from IntelliJ using the Spek Framework plugin (2sec).
I guess JUnit is doing some setup & teardown behind the scenes for each test generated by it()
.
How can I optimize that? Is there a setting in Spek which it passes on to JUnit to tell it to e.g. reuse test container?
Or do I need to configure JUnit separately somehow?Marc Knaup
12/12/2018, 1:04 PMit()
blocks is horribly slow when run with Gradle+JUnit (15min) but quite fast when run from IntelliJ using the Spek Framework plugin (2sec).
I guess JUnit is doing some setup & teardown behind the scenes for each test generated by it()
.
How can I optimize that? Is there a setting in Spek which it passes on to JUnit to tell it to e.g. reuse test container?
Or do I need to configure JUnit separately somehow?raniejade
12/15/2018, 4:28 PMobject LargeTest: Spek({
repeat(27000) {
test("test $it") {
}
}
})
Marc Knaup
12/15/2018, 4:44 PM