thanh
04/28/2017, 4:23 AMAlowaniak
05/23/2018, 12:51 PMHexa
10/17/2018, 7:29 PMmyanmarking
11/13/2018, 12:02 PMjava.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize
Slackbot
11/23/2018, 8:23 PMLeoColman
12/25/2018, 8:35 PMthanksforallthefish
01/08/2019, 7:31 AMassertj
http://joel-costigliola.github.io/assertj/assertj-core-features-highlight.html#custom-comparison-strategy) without using external libraries? does it even make sense in a kotlin world?LeoColman
01/16/2019, 12:36 PMRun all tests
?LeoColman
01/19/2019, 10:48 PMLeoColman
01/24/2019, 11:28 AMLeoColman
01/24/2019, 11:32 AMout
exists. Sometimes compiled code won't be updated and it will seem that the test you deleted is still theredave08
02/01/2019, 9:18 AMacando86
02/20/2019, 1:03 AMkotlintest-runner-junit4 v.3.2.1
as dependency (without using or configuring it, just importing!), i'm getting the following exception when trying to run the test suite from intellij 2018.3.4/android studio3.3. Works 100% fine when running from gradle (im using gradle5).
Works 100% fine when running individual test files from intellij/Android studio.
I would like to migrate to kotlintest gradually in this project, so the plan was to have all new tests written in kotlintest and keep the existing ones in junit for a while. Is there a way to do this without compromising the possibility to run the test suite from intellij?
i've seen a previous issue reported on this, but it has been closed: https://github.com/kotlintest/kotlintest/issues/385 so maybe i'm missing something. Thanks
Exception in thread "main" java.lang.NoClassDefFoundError: org/junit/platform/launcher/TestExecutionListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.intellij.junit5.JUnit5IdeaTestRunner.createListeners(JUnit5IdeaTestRunner.java:39)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:45)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
LeoColman
02/20/2019, 11:56 AMYuan Lin
02/27/2019, 7:19 AMsam
03/01/2019, 12:02 AMthanksforallthefish
03/04/2019, 11:37 AM3.1
. Given this production class
class App {
companion object {
val threadLocal: ThreadLocal<String> = ThreadLocal()
}
val greeting: String
get() {
return threadLocal.get()
}
}
this test is successful in `3.1`m but fails in 3.2
and 3.3
import io.kotlintest.Description
import io.kotlintest.Spec
import io.kotlintest.shouldBe
import io.kotlintest.specs.StringSpec
class AppIntegrationTest : StringSpec() {
override fun beforeSpec(description: Description, spec: Spec) {
App.threadLocal.set("test")
}
init {
"greetings" {
App().greeting shouldBe "test"
}
}
}
sam
03/04/2019, 12:16 PMbbaldino
03/06/2019, 9:39 PMLeoColman
03/11/2019, 6:12 PMsam
03/12/2019, 10:58 PMbbaldino
03/12/2019, 11:02 PMdave08
03/17/2019, 1:07 PMdave08
03/17/2019, 1:20 PMsam
03/18/2019, 12:18 AMbbaldino
03/18/2019, 9:00 PMsam
03/20/2019, 8:01 PMbbaldino
03/21/2019, 11:33 PMval result = func(): String?
result shouldNotBe null
result as String
result.startsWith("...") shouldBe true
LeoColman
05/06/2019, 12:56 PMSergio Crespo Toubes
05/16/2019, 7:57 AMSergio Crespo Toubes
05/16/2019, 7:57 AMtseisel
05/16/2019, 8:05 AMshouldNotThrow
function :
shouldNotThrow<Exception> {
foo()
}