-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabled artifact generation when calling the
assemble
task
Fixes #353 When starting an `assemble` task, all project artifacts marked as visible are generated. Kover artifacts are marked as invisible so that they are created only when generating reports. Also, Android projects have several different artifacts that should not be generated all at once
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...lTest/kotlin/kotlinx/kover/gradle/plugin/test/functional/cases/ArtifactGenerationTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2017-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
package kotlinx.kover.gradle.plugin.test.functional.cases | ||
|
||
import kotlinx.kover.gradle.plugin.test.functional.framework.configurator.BuildConfigurator | ||
import kotlinx.kover.gradle.plugin.test.functional.framework.starter.GeneratedTest | ||
|
||
internal class ArtifactGenerationTests { | ||
|
||
@GeneratedTest | ||
fun BuildConfigurator.testAssemble() { | ||
// generation of Kover artifacts should be disabled on `assemble` | ||
// fix of https://github.com/Kotlin/kotlinx-kover/issues/353 | ||
addProjectWithKover { | ||
sourcesFrom("simple") | ||
} | ||
|
||
run("assemble") { | ||
taskNotCalled("test") | ||
taskNotCalled("koverGenerateArtifact") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters