Skip to content

Commit fc70ab3

Browse files
authored
Release 0.7.2
PR #416
1 parent 44240be commit fc70ab3

File tree

149 files changed

+184
-11845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+184
-11845
lines changed

Diff for: CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
0.7.2 / 2023-06-26
2+
===================
3+
### Features
4+
* [`#362`](https://github.com/Kotlin/kotlinx-kover/issues/362) Removed the dependency on the order of applying of the plugin
5+
* [`#229`](https://github.com/Kotlin/kotlinx-kover/issues/229) Added task to print coverage to logs
6+
* [`#394`](https://github.com/Kotlin/kotlinx-kover/issues/394) Added DSL accessors for Kover Default report tasks
7+
* [`#400`](https://github.com/Kotlin/kotlinx-kover/issues/400) Added descriptions for Kover report tasks
8+
* [`#409`](https://github.com/Kotlin/kotlinx-kover/issues/409) Added ability to generate reports even if there are no tests in the project
9+
* Upgraded default JaCoCo version to `0.8.10`
10+
11+
### Bugfixes
12+
* [`#413`](https://github.com/Kotlin/kotlinx-kover/issues/413) Fixed issues with cache miss of build cache at the time of project relocation
13+
14+
### Documentation
15+
* Fixed docs typo: `dependency {}` -> `dependencies {}`
16+
17+
### Internal features
18+
* Moved Kover Gradle Plugin to the separate subproject
19+
* Migrated from buildSrc to composite build
20+
* Added support of the version catalog
21+
* IntelliJ coverage dependency versions upgraded to `1.0.724`
22+
23+
124
0.7.1 / 2023-06-01
225
===================
326
### Features

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Add the following to your top-level build file:
3636

3737
```kotlin
3838
plugins {
39-
id("org.jetbrains.kotlinx.kover") version "0.7.1"
39+
id("org.jetbrains.kotlinx.kover") version "0.7.2"
4040
}
4141
```
4242
</details>
@@ -46,7 +46,7 @@ plugins {
4646

4747
```groovy
4848
plugins {
49-
id 'org.jetbrains.kotlinx.kover' version '0.7.1'
49+
id 'org.jetbrains.kotlinx.kover' version '0.7.2'
5050
}
5151
```
5252
</details>
@@ -69,7 +69,7 @@ buildscript {
6969
}
7070

7171
dependencies {
72-
classpath("org.jetbrains.kotlinx:kover-gradle-plugin:0.7.1")
72+
classpath("org.jetbrains.kotlinx:kover-gradle-plugin:0.7.2")
7373
}
7474
}
7575

@@ -88,7 +88,7 @@ buildscript {
8888
mavenCentral()
8989
}
9090
dependencies {
91-
classpath 'org.jetbrains.kotlinx:kover-gradle-plugin:0.7.1'
91+
classpath 'org.jetbrains.kotlinx:kover-gradle-plugin:0.7.2'
9292
}
9393
}
9494

Diff for: docs/cli/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ configurations.register("koverCli") {
7171
}
7272
7373
dependencies {
74-
runtimeOnly("org.jetbrains.kotlinx:kover-offline-runtime:0.7.1")
75-
add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.7.1")
74+
runtimeOnly("org.jetbrains.kotlinx:kover-offline-runtime:0.7.2")
75+
add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.7.2")
7676
7777
testImplementation(kotlin("test"))
7878
}

Diff for: docs/gradle-plugin/configuring.md

+96-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## Configuring default reports
1212

1313
The full configuration for default reports is given below.
14-
These reports are avialable by default when Kover is applied by tasks such as `:koverHtmlReport` and `:koverXmlReport`.
14+
These reports are available by default when Kover is applied by tasks such as `:koverHtmlReport`, `:koverXmlReport` and `:koverLog`.
1515

1616
See also [verification explanations](#verification)
1717

@@ -146,6 +146,43 @@ koverReport {
146146
maxBound(98)
147147
}
148148
}
149+
150+
// configure coverage logging
151+
log {
152+
// print coverage when running the `check` task
153+
onCheck = true
154+
155+
// overriding filters only for the logging report
156+
filters {
157+
// exclusions for logging reports
158+
excludes {
159+
// excludes class by fully-qualified JVM class name, wildcards '*' and '?' are available
160+
classes("com.example.*")
161+
// excludes all classes located in specified package and it subpackages, wildcards '*' and '?' are available
162+
packages("com.another.subpackage")
163+
// excludes all classes and functions, annotated by specified annotations (with BINARY or RUNTIME AnnotationRetention), wildcards '*' and '?' are available
164+
annotatedBy("*Generated*")
165+
}
166+
167+
// inclusions for logging reports
168+
includes {
169+
// includes class by fully-qualified JVM class name, wildcards '*' and '?' are available
170+
classes("com.example.*")
171+
// includes all classes located in specified package and it subpackages
172+
packages("com.another.subpackage")
173+
}
174+
}
175+
// Add a header line to the output before the lines with coverage
176+
header = null
177+
// Format of the strings to print coverage for the specified in `groupBy` group
178+
format = "<entity> line coverage: <value>%"
179+
// Specifies by which entity the code for separate coverage evaluation will be grouped
180+
groupBy = GroupingEntityType.APPLICATION
181+
// Specifies which metric is used for coverage evaluation
182+
coverageUnits = MetricType.LINE
183+
// Specifies aggregation function that will be calculated over all the elements of the same group
184+
aggregationForGroup = AggregationType.COVERED_PERCENTAGE
185+
}
149186
}
150187
}
151188
```
@@ -287,6 +324,43 @@ koverReport {
287324
maxBound(98)
288325
}
289326
}
327+
328+
// configure coverage logging for `release` build variant (task `koverLogRelease`)
329+
log {
330+
// print coverage when running the `check` task
331+
onCheck = true
332+
333+
// overriding filters only for the logging report
334+
filters {
335+
// exclusions for logging reports
336+
excludes {
337+
// excludes class by fully-qualified JVM class name, wildcards '*' and '?' are available
338+
classes("com.example.*")
339+
// excludes all classes located in specified package and it subpackages, wildcards '*' and '?' are available
340+
packages("com.another.subpackage")
341+
// excludes all classes and functions, annotated by specified annotations (with BINARY or RUNTIME AnnotationRetention), wildcards '*' and '?' are available
342+
annotatedBy("*Generated*")
343+
}
344+
345+
// inclusions for logging reports
346+
includes {
347+
// includes class by fully-qualified JVM class name, wildcards '*' and '?' are available
348+
classes("com.example.*")
349+
// includes all classes located in specified package and it subpackages
350+
packages("com.another.subpackage")
351+
}
352+
}
353+
// Add a header line to the output before the lines with coverage
354+
header = null
355+
// Format of the strings to print coverage for the specified in `groupBy` group
356+
format = "<entity> line coverage: <value>%"
357+
// Specifies by which entity the code for separate coverage evaluation will be grouped
358+
groupBy = GroupingEntityType.APPLICATION
359+
// Specifies which metric is used for coverage evaluation
360+
coverageUnits = MetricType.LINE
361+
// Specifies aggregation function that will be calculated over all the elements of the same group
362+
aggregationForGroup = AggregationType.COVERED_PERCENTAGE
363+
}
290364
}
291365
}
292366
```
@@ -332,31 +406,47 @@ koverReport {
332406
}
333407

334408
xml {
335-
// overriding filters for default xml report
409+
// overriding filters for default xml report
336410
filters {
337411
excludes { }
338412
includes { }
339413
}
340414
}
415+
416+
log {
417+
// overriding filters for logging report
418+
filters {
419+
excludes { }
420+
includes { }
421+
}
422+
}
341423
}
342424
androidReports("release") {
343-
// overriding filters for reports for `release` build variant
425+
// overriding filters for reports for `release` build variant
344426
filters {
345427
excludes {
346-
// exclusions for reports for `release` build variant
428+
// exclusions for reports for `release` build variant
347429
}
348430
includes {
349-
// inclusions for default reports for `release` build variant
431+
// inclusions for default reports for `release` build variant
350432
}
351433
}
352434

353435
xml {
354-
// overriding filters for xml report for `release` build variant
436+
// overriding filters for xml report for `release` build variant
355437
filters {
356438
excludes { }
357439
includes { }
358440
}
359441
}
442+
443+
log {
444+
// overriding filters for logging report for `release` build variant
445+
filters {
446+
excludes { }
447+
includes { }
448+
}
449+
}
360450
}
361451
}
362452
```

Diff for: docs/gradle-plugin/dokka/-kover -gradle -plugin/kotlinx.kover.gradle.plugin.dsl/-aggregation-type/-c-o-v-e-r-e-d_-c-o-u-n-t/index.html

-126
This file was deleted.

0 commit comments

Comments
 (0)