Skip to content

Commit 7f09cd9

Browse files
committed
Add test dependency
1 parent 749fdc5 commit 7f09cd9

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
buildscript {
22
ext.kotlin_version = '1.1.51'
3+
ext.jUnit_version = '4.12'
4+
ext.mockito_version = '1.5.0'
5+
ext.spek_version = '1.1.4'
6+
ext.spek_junit_runner_version = '1.0.0-RC3'
7+
ext.support_library_version = '26.0.0-alpha1'
38

49
repositories {
510
jcenter()

library/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,22 @@ android {
2222
}
2323
sourceSets {
2424
main.java.srcDirs += 'src/main/kotlin'
25+
test.java.srcDirs += 'src/test/kotlin'
2526
}
2627
}
2728

2829
dependencies {
29-
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
30+
compile "com.android.support:appcompat-v7:$support_library_version"
3031
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
32+
33+
testCompile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
34+
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
35+
testCompile "junit:junit:$jUnit_version"
36+
testCompile "com.nhaarman:mockito-kotlin-kt1.1:$mockito_version"
37+
testCompile "org.jetbrains.spek:spek-api:$spek_version"
38+
testCompile "org.jetbrains.spek:spek-subject-extension:$spek_version"
39+
testCompile "org.jetbrains.spek:spek-junit-platform-engine:$spek_version"
40+
testCompile "org.junit.platform:junit-platform-runner:$spek_junit_runner_version"
3141
}
3242

3343
// build a jar with source files

0 commit comments

Comments
 (0)