leodeleon
08/31/2017, 1:30 PMAug 31, 2017 3:29:44 PM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
WARNING: TestEngine with ID 'spek' failed to discover tests
java.lang.NoSuchMethodError: org.jetbrains.spek.engine.Scope.setSource(Lorg/junit/platform/engine/TestSource;)V
leodeleon
08/31/2017, 1:30 PMleodeleon
08/31/2017, 1:31 PMjk
08/31/2017, 1:56 PMleodeleon
08/31/2017, 2:00 PMleodeleon
08/31/2017, 2:00 PMError:A problem occurred configuring project ':app'.
> The 'java' plugin has been applied, but it is not compatible with the Android plugins.
leodeleon
08/31/2017, 2:00 PMleodeleon
08/31/2017, 2:00 PMdependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-RC2'
}
}
apply plugin: 'org.junit.platform.gradle.plugin'
leodeleon
08/31/2017, 2:03 PMleodeleon
08/31/2017, 2:03 PMleodeleon
08/31/2017, 2:06 PMmannodermaus
08/31/2017, 3:15 PMmikroskeem
09/02/2017, 10:46 AMmikroskeem
09/02/2017, 10:48 AMmikroskeem
09/02/2017, 10:49 AMmikroskeem
09/02/2017, 10:49 AMraniejade
09/02/2017, 10:50 AM1.1.4
mikroskeem
09/02/2017, 10:58 AMdanielibrahim
09/06/2017, 7:48 PMkasper.kondzielski
09/12/2017, 10:15 AMtimrijckaert
09/13/2017, 10:25 PMmoozg
09/13/2017, 11:54 PMapp
is kotlin-android for AS 3.0 Preview. There's also module sumbodule
that's pure kotlin and that one works well with Spek Plugin. (This sample repo was created for my and my teammate talk on droidcon Berlin.)timrijckaert
09/14/2017, 7:53 AMtimrijckaert
09/14/2017, 7:53 AMScreen Shot 2017-09-14 at 09.51.57.png▾
user
09/14/2017, 11:15 AMhttps://kotlinlang.slack.com/files/U335DAVV4/F730TD9E0/screen_shot_2017-09-14_at_09.51.57.png▾
Spek
test, that won't work in android project. Create new Run configuration to run as Android JUnit
. Then select module app
and select directory with tests sth like: ...test\kotlin\com\intive\hangman\engine
aaronfox
09/15/2017, 10:59 AMjava.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.isInnerClass(Ljava/lang/Class;)Z
aaronfox
09/15/2017, 11:00 AMWARNING: TestEngine with ID 'junit-jupiter' failed to discover tests
aaronfox
09/15/2017, 11:00 AMxml
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.0.0</version>
</dependency>
</dependencies>
<configuration>
<includes>
<include>**/*Spec.*</include>
</includes>
</configuration>
</plugin>
aaronfox
09/15/2017, 11:01 AM<dependency>
<groupId>org.jetbrains.spek</groupId>
<artifactId>spek-api</artifactId>
<version>${spek.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId>
<version>1.0.0-RC2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.0.0-M4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.spek</groupId>
<artifactId>spek-junit-platform-engine</artifactId>
<version>${spek.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.amshove.kluent</groupId>
<artifactId>kluent</artifactId>
<version>1.27</version>
<scope>test</scope>
</dependency>
`
aaronfox
09/15/2017, 11:01 AM<kotlin.version>1.1.4-3</kotlin.version>
<spek.version>1.1.4</spek.version>