Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
bug:testcases not being run due to SDK update (#1604)
Browse files Browse the repository at this point in the history
* bumped roboelectric

* fixed outdated jacoco also not liking the new sdk version

* fixed tasks.register being used instead of the ordinary task definiiton
  • Loading branch information
CommanderStorm authored Sep 10, 2023
1 parent 6789bec commit 588b870
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ dependencies {
testImplementation 'com.android.support.test:rules:1.0.2'
testImplementation 'com.android.support.test:runner:1.0.2'
testImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
testImplementation 'org.robolectric:robolectric:4.8.1'
testImplementation 'org.robolectric:robolectric:4.10.3'


// TicketSale
Expand Down
2 changes: 1 addition & 1 deletion gradle/scripts/checkstyle.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'checkstyle'

task checkstyle(type: Checkstyle) {
tasks.register('checkstyle', Checkstyle) {
showViolations = true
configFile file("$rootDir/gradle/config/checkstyle.xml")
source 'src/main/java'
Expand Down
5 changes: 3 additions & 2 deletions gradle/scripts/jacoco.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apply plugin: 'jacoco'

jacoco {
toolVersion = "0.8.5"
toolVersion = "0.8.10"
}

task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
tasks.register('jacocoTestReport', JacocoReport) {
dependsOn "testDebugUnitTest"
group = "Reporting"
description = "Generate Jacoco coverage reports for Debug build"

Expand Down
2 changes: 1 addition & 1 deletion gradle/scripts/pmd.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'pmd'

task pmd(type: Pmd) {
tasks.register('pmd', Pmd) {
description 'Run PMD'

ruleSetFiles = files("$rootDir/gradle/config/pmd-ruleset.xml")
Expand Down

0 comments on commit 588b870

Please sign in to comment.