Skip to content

Commit 08231d1

Browse files
author
ADMSK\AVROGAL1
committed
docs: updates on documentation
Added informational and corporate documentation
1 parent 213d076 commit 08231d1

File tree

4 files changed

+52
-17
lines changed

4 files changed

+52
-17
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ script:
2424

2525
after_success:
2626
- if [ -n "$CODECOV_ENABLED" ]; then bash <(curl -s --retry 5 --retry-delay 2 --connect-timeout 2 https://codecov.io/bash) -t $CODECOV_TOKEN; fi
27+
# - ./gradlew cobertura coveralls
28+
- ./gradlew jacocoTestReport coveralls
29+
# - ./gradlew pitest coveralls
2730

2831
after_failure:
2932
- cat hs_err*

build.gradle

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ plugins {
55
id('com.diffplug.spotless') version '5.9.0'
66
id('com.gorylenko.gradle-git-properties') version '2.2.4'
77
id('io.franzbecker.gradle-lombok') version '4.0.0'
8+
id('info.solidsoft.pitest') version '1.5.2'
89

10+
id('jacoco')
911
id('org.sonarqube')
1012
id('java')
1113
id('maven')
@@ -46,7 +48,9 @@ repositories {
4648
}
4749

4850
allprojects {
51+
apply plugin: 'info.solidsoft.pitest'
4952
apply plugin: 'io.github.robwin.jgitflow'
53+
apply plugin: 'com.github.kt3k.coveralls'
5054
apply plugin: 'com.github.johnrengelman.shadow'
5155
apply plugin: 'com.adarshr.test-logger'
5256
apply plugin: 'com.diffplug.spotless'
@@ -67,13 +71,31 @@ allprojects {
6771
}
6872
}
6973

70-
// jacocoTestReport {
71-
// reports {
72-
// html.enabled = true
73-
// xml.enabled = true
74-
// csv.enabled = false
75-
// }
76-
// }
74+
pitest {
75+
threads.set(4)
76+
outputFormats.set(['XML', 'HTML'])
77+
timestampedReports.set(false)
78+
79+
junit5PluginVersion.set('0.12')
80+
81+
testSourceSets.set([sourceSets.test]) //sourceSets.integrationTest
82+
mainSourceSets.set([sourceSets.main]) //sourceSets.additionalMain
83+
jvmArgs.set(['-Xmx1024m', '-Dspring.test.constructor.autowire.mode=all'])
84+
useClasspathFile.set(true) //useful with bigger projects on Windows
85+
fileExtensionsToFilter.addAll('xml', 'orbit')
86+
87+
if (project.name in ['appflow', 'avro', 'codecheck', 'db-schema', 'flatbuffers', 'protobuf', 'thrift', 'testflow']) {
88+
failWhenNoMutations.set(false)
89+
}
90+
}
91+
92+
jacocoTestReport {
93+
reports {
94+
html.enabled = true
95+
xml.enabled = true
96+
csv.enabled = false
97+
}
98+
}
7799

78100
gitProperties {
79101
failOnNoGitDirectory = false
@@ -85,6 +107,10 @@ allprojects {
85107
file(rootDir.absolutePath + '/build.properties').withInputStream { buildProperties.load(it) }
86108
if (buildProperties.getProperty('build.debug').toBoolean()) {
87109

110+
coveralls {
111+
jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
112+
}
113+
88114
initJGitflow {
89115
feature = "features/"
90116
release = "releases/"

buildSrc/build.gradle

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ repositories {
77
}
88

99
ext.versions = [
10-
"github_release" : "2.2.12",
11-
"jgitflow" : "0.6.0",
12-
"gradle_shadow" : "5.2.0",
13-
"gradle_versions" : "0.28.0",
14-
"gradle_sonarqube": "2.8",
15-
"gradle_dokka" : "1.4.10",
16-
"semver4j" : "3.1.0",
17-
"gradle_nexus" : "0.22.0"
10+
'github_release' : '2.2.12',
11+
'pitest' : '1.5.2',
12+
'coveralls' : '2.8.3',
13+
'jgitflow' : '0.6.0',
14+
'gradle_shadow' : '5.2.0',
15+
'gradle_versions' : '0.28.0',
16+
'gradle_sonarqube': '2.8',
17+
'gradle_dokka' : '1.4.10',
18+
'semver4j' : '3.1.0',
19+
'gradle_nexus' : '0.22.0'
1820
]
1921
ext.deps = [
2022
"github_release" : "com.github.breadmoirai:github-release:${versions.github_release}",
21-
"jgitflow" : "io.github.robwin:jgitflow-gradle-plugin:${versions.jgitflow}",
23+
"pitest" : "info.solidsoft.gradle.pitest:gradle-pitest-plugin:${versions.pitest}",
24+
"coveralls" : "org.kt3k.gradle.plugin:coveralls-gradle-plugin:${versions.coveralls}",
25+
"jgitflow" : "io.github.robwin:jgitflow-gradle-plugin:${versions.jgitflow}",
2226
"gradle_shadow" : "com.github.jengelman.gradle.plugins:shadow:${versions.gradle_shadow}",
2327
"gradle_versions" : "com.github.ben-manes:gradle-versions-plugin:${versions.gradle_versions}",
2428
"gradle_sonarqube": "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${versions.gradle_sonarqube}",
@@ -28,6 +32,7 @@ ext.deps = [
2832
]
2933

3034
dependencies {
35+
implementation deps.coveralls
3136
implementation deps.jgitflow
3237
implementation deps.github_release
3338
implementation deps.gradle_shadow

buildSrc/src/main/groovy/subproject.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import org.apache.tools.ant.filters.ReplaceTokens
22
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
33

4-
import java.nio.charset.StandardCharsets
54
import java.time.ZoneOffset
65
import java.time.ZonedDateTime
76
import java.time.format.DateTimeFormatter
@@ -136,6 +135,8 @@ test {
136135
minHeapSize = "256m"
137136
maxHeapSize = "2g"
138137

138+
systemProperty 'spring.test.constructor.autowire.mode', 'all'
139+
139140
testLogging {
140141
displayGranularity = 2
141142
showExceptions = true

0 commit comments

Comments
 (0)