dave08
09/27/2017, 10:53 AMdave08
09/28/2017, 1:40 PMartur.dryomov
09/28/2017, 5:06 PMartem_zin
09/29/2017, 7:44 PM5.0.0
. Also you can try to kill/start Gradle daemon just in casecodeslubber
10/06/2017, 2:12 AMharshitbangar
10/11/2017, 10:09 AMbdawg.io
10/11/2017, 11:22 PMharshitbangar
10/12/2017, 1:03 PMpardom
10/12/2017, 4:34 PMpardom
10/12/2017, 4:39 PMsnowe
10/12/2017, 8:08 PMharshitbangar
10/16/2017, 7:05 AMdave08
10/16/2017, 8:19 AMmkporwit
10/16/2017, 8:24 AMcodeslubber
10/22/2017, 3:50 PMmkporwit
10/24/2017, 6:20 PMcom.github.trevershick.test.ldap
, which can take an annotation to additionally configure the LDAP instance. This annotation works fine in JUnit (4 and 5) based tests, but appears to break with Spek.
@LdapConfiguration(ldifs = arrayOf(Ldif("/hoyluPersonTestSchema.ldif")))
class LdapHandlerSpec : Spek({
val ldapServer = LdapServerResource(this)
sngrekov
10/28/2017, 8:21 AMadambl4
11/01/2017, 1:13 PMayrat555
11/03/2017, 8:24 PMpoohbar
11/06/2017, 1:57 AMWARNING: TestEngine with ID 'spek' failed to discover tests
poohbar
11/06/2017, 12:21 PMNov 06, 2017 7:19:28 AM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
WARNING: TestEngine with ID 'spek' failed to discover tests
java.lang.IllegalAccessError: tried to access method org.junit.platform.engine.support.descriptor.ClassSource.<init>(Ljava/lang/Class;)V from class org.jetbrains.spek.engine.SpekTestEngine
at org.jetbrains.spek.engine.SpekTestEngine.resolveSpec(SpekTestEngine.kt:114)
at org.jetbrains.spek.engine.SpekTestEngine.resolveSpecs(SpekTestEngine.kt:80)
at org.jetbrains.spek.engine.SpekTestEngine.discover(SpekTestEngine.kt:50)
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 org.jetbrains.spek.tooling.runner.junit.JUnitPlatformSpekRunner.run(JUnitPlatformSpekRunner.kt:107)
at org.jetbrains.spek.tooling.MainKt.main(Main.kt:58
pom.xml
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jre8</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.github.jkcclemens</groupId>
<artifactId>khttp</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.knowm.xchart</groupId>
<artifactId>xchart</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.spek</groupId>
<artifactId>spek-api</artifactId>
<version>1.1.5</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jetbrains.spek</groupId>
<artifactId>spek-junit-platform-engine</artifactId>
<version>1.1.5</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.amshove.kluent</groupId>
<artifactId>kluent</artifactId>
<version>1.30</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>
My test is in src/test/kotlin
object Test: Spek({
describe("a calculator") {
it("should return the result of adding the first number to the second number") {
"test" shouldEqual "test"
}
it("should return the result of subtracting the second number from the first number") {
}
}
})
jackmiras
11/07/2017, 12:47 PMartem_zin
11/14/2017, 10:33 PMharshitbangar
11/21/2017, 1:46 AMdsgryazin
11/21/2017, 11:17 AMkotlin-test
? The argument "spek was hold on jetbrains repo" sounds weak. Very interested if you have any experience with it. I personally consider kotlin-test as the main alternative to spek/spock/etc. And to writing own testing lib, of course 😂kasper.kondzielski
11/21/2017, 11:23 AMvoddan
12/03/2017, 12:03 PMvoddan
12/03/2017, 3:08 PMon("1122") {
val input = "1122"
val result = taskA(input)
it("should produce 3") {
assertEquals(3, result)
}
}
As you see, there are unfortunate repetitions of the input value and the assert value if I want to use them in the section names. How do you tackle that?codeslubber
12/12/2017, 3:35 AMorangy