Skip to content

Commit

Permalink
changes needed in gradle to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igsosa92 committed May 16, 2019
1 parent f177889 commit 77c4a44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.31'
repositories {
google()
jcenter()
Expand All @@ -9,6 +10,7 @@ buildscript {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
8 changes: 6 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'jacoco-android'
apply plugin: 'com.github.kt3k.coveralls'

Expand Down Expand Up @@ -43,7 +45,7 @@ buildscript {
ext.robolectric_version = '4.2'
ext.androidx_test_core_version = '1.1.0'
ext.mockito_inline_version = '2.13.0'
ext.assertj_version = '3.9.0';
ext.assertj_version = '3.9.0'
}

dependencies {
Expand All @@ -63,8 +65,10 @@ dependencies {
testImplementation "junit:junit:$junit_version"
testImplementation "org.robolectric:robolectric:$robolectric_version"
testImplementation "androidx.test:core:$androidx_test_core_version"
testImplementation "org.mockito:mockito-inline:$mockito_inline_version" // Mockito inline adds support for mocking final classes and methods
testImplementation "org.mockito:mockito-inline:$mockito_inline_version"
// Mockito inline adds support for mocking final classes and methods
testImplementation "org.assertj:assertj-core:$assertj_version"
testAnnotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
testAnnotationProcessor "com.google.dagger:dagger-android-processor:$dagger_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

0 comments on commit 77c4a44

Please sign in to comment.