Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,5 @@ build
coderadar-server/local.application.properties
*.class
/classes

coderadar-ui/coverage
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ sonarqube {
property "sonar.sources", "src/main/java, coderadar-ui/src"
property "sonar.tests", "src/test/java"
property "sonar.exclusions", "coderadar-app/workdir"
property "sonar.javascript.lcov.reportPaths", "coderadar-ui/coverage/coderadar/lcov.info"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
}
}

Expand Down
16 changes: 16 additions & 0 deletions coderadar-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"

dependencies {
compile project(':coderadar-plugin-api')
Expand All @@ -18,6 +19,21 @@ dependencies {
testCompile "org.springframework.boot:spring-boot-starter-test:${version_spring_boot}"
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}

spotless {
java {
googleJavaFormat()
Expand Down
14 changes: 14 additions & 0 deletions coderadar-dependency-map/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"

spotless {
java {
Expand All @@ -14,9 +15,22 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2'
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
finalizedBy jacocoTestReport
}
16 changes: 16 additions & 0 deletions coderadar-graph/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"

spotless {
java {
Expand All @@ -11,3 +12,18 @@ dependencies {
compile project(":coderadar-core")
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: version_spring_boot
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
17 changes: 17 additions & 0 deletions coderadar-plugin-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
id 'java'
}

apply plugin: "jacoco"

version 'unspecified'

sourceCompatibility = 1.8
Expand All @@ -13,3 +15,18 @@ repositories {
dependencies {
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.2'
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
16 changes: 16 additions & 0 deletions coderadar-plugins/checkstyle-analyzer-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"

spotless {
java {
Expand All @@ -13,4 +14,19 @@ dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
compile project(":coderadar-plugin-api")
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
16 changes: 16 additions & 0 deletions coderadar-plugins/loc-analyzer-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"

spotless {
java {
Expand All @@ -11,3 +12,18 @@ dependencies {
testCompile 'org.assertj:assertj-core:3.5.1'
compile project(":coderadar-plugin-api")
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
16 changes: 16 additions & 0 deletions coderadar-rest/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "jacoco"

spotless {
java {
Expand All @@ -11,3 +12,18 @@ dependencies {

compile project(":coderadar-core")
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
16 changes: 16 additions & 0 deletions coderadar-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import java.text.SimpleDateFormat
apply plugin: "com.diffplug.gradle.spotless"
apply plugin: "org.asciidoctor.convert"
apply plugin: "org.ajoberstar.git-publish"
apply plugin: "jacoco"

ext {
snippetsDir = file("build/generated-snippets")
Expand Down Expand Up @@ -80,3 +81,18 @@ jar {
}

preparePages.dependsOn asciidoctor

jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}

test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
1 change: 1 addition & 0 deletions coderadar-ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"codeCoverage": true,
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
Expand Down
2 changes: 1 addition & 1 deletion coderadar-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

node {
version = '12.13.1'
version = '13.13.0'
npmVersion = '6.12.1'
download = true
}
Expand Down
Loading