Skip to content

Commit

Permalink
closes #69 added jacoco support
Browse files Browse the repository at this point in the history
  • Loading branch information
davenicolette committed Jan 31, 2021
1 parent d1b8004 commit 1379f25
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1,425 deletions.
Binary file modified GREETINGT
Binary file not shown.
Binary file modified LAUNCHTESTT
Binary file not shown.
36 changes: 35 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import static org.apache.tools.ant.taskdefs.condition.Os.*

plugins {
id 'java-library'
id "org.sonarqube" version "3.0"
id 'org.sonarqube' version '3.0'
id 'jacoco'
}

version = '0.0.1'
Expand All @@ -17,6 +18,39 @@ sonarqube {
property "sonar.projectKey", "neopragma_cobol-check"
property "sonar.organization", "neopragma-github"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.exclusions", "**/EIBResponseCodes.java,**/Keyword.java"
}
}

jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'
limit {
minimum = 0.8
}
excludes = ['*Constants',
'*Exception',
'*DirectoryNameMatcher',
'*Driver',
'*EIBResponseCodes',
'*Exception*',
'*Generator',
'*Keyword',
'*LinuxProcessLauncher',
'*Log',
'*Flag',
'*StringHelper',
'*TestSuiteConcatenator']
}
rule {
element = 'CLASS'
limit {
minimum = 0.2
}
includes = ['*LinuxProcessLauncher',
'*TestSuiteConcatenator']
}
}
}

Expand Down
1 change: 1 addition & 0 deletions sonar-scan
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./gradlew -Dsonar.login=e1338b64579c5f8b6e2556b9d42c3f86e69914c7 -DXX:MaxMetaspaceSize=64M sonarqube
Loading

0 comments on commit 1379f25

Please sign in to comment.