kordamp / kordamp-gradle-plugins

A collection of Gradle plugins
https://kordamp.org/kordamp-gradle-plugins/
Apache License 2.0
138 stars 25 forks source link

Task jacocoIntegrationTest is skipped if there is no test folder #479

Open Woehni opened 3 years ago

Woehni commented 3 years ago

If integrationTest is the only test module in the project then the task jacocoIntegrationTestReport is skipped.

Just by adding the empty folder structure test/kotlin the task will be executed.

In contrast to this the task integrationTestReport is executed as expected independent on the existence of the test module

This issue exists with version 0.45.0.

If anything is missing in my description, please get back to me. This is my first issue report on GitHub. :)

aalmiray commented 3 years ago

Can you tell me which Kotlin plugins you have applied to the build? Please post the output of invoking gradle plugins. Thanks!

Woehni commented 3 years ago
Total plugins: 22

plugin 0:
    id: lifecycle-base
    version: 6.8.3
    implementationClass: org.gradle.language.base.plugins.LifecycleBasePlugin

plugin 1:
    id: base
    version: 6.8.3
    implementationClass: org.gradle.api.plugins.BasePlugin

plugin 2:
    id: org.kordamp.gradle.base
    version: 0.45.0
    implementationClass: org.kordamp.gradle.plugin.base.BasePlugin
    enabled: true

plugin 3:
    id: reporting-base
    version: 6.8.3
    implementationClass: org.gradle.api.plugins.ReportingBasePlugin

plugin 4:
    id: jacoco
    version: 6.8.3
    implementationClass: org.gradle.testing.jacoco.plugins.JacocoPlugin

plugin 5:
    implementationClass: org.kordamp.gradle.plugin.jacoco.JacocoPlugin

plugin 6:
    implementationClass: io.spring.gradle.dependencymanagement.DependencyManagementPlugin

plugin 7:
    id: help-tasks
    version: 6.8.3
    implementationClass: org.gradle.api.plugins.HelpTasksPlugin

plugin 8:
    id: build-init
    version: 6.8.3
    implementationClass: org.gradle.buildinit.plugins.BuildInitPlugin

plugin 9:
    id: wrapper
    version: 6.8.3
    implementationClass: org.gradle.buildinit.plugins.WrapperPlugin

plugin 10:
    implementationClass: org.openapitools.generator.gradle.plugin.OpenApiGeneratorPlugin

plugin 11:
    implementationClass: org.kordamp.gradle.plugin.integrationtest.IntegrationTestPlugin

plugin 12:
    implementationClass: org.springframework.boot.gradle.plugin.SpringBootPlugin

plugin 13:
    id: jvm-ecosystem
    version: 6.8.3
    implementationClass: org.gradle.api.plugins.JvmEcosystemPlugin

plugin 14:
    implementationClass: org.gradle.api.plugins.JavaBasePlugin$Inject

plugin 15:
    id: java
    version: 6.8.3
    implementationClass: org.gradle.api.plugins.JavaPlugin

plugin 16:
    implementationClass: org.jetbrains.kotlin.gradle.scripting.internal.ScriptingKotlinGradleSubplugin

plugin 17:
    implementationClass: org.jetbrains.kotlin.gradle.scripting.internal.ScriptingGradleSubplugin

plugin 18:
    implementationClass: org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper

plugin 19:
    implementationClass: org.jetbrains.kotlin.allopen.gradle.AllOpenGradleSubplugin

plugin 20:
    implementationClass: org.jetbrains.kotlin.allopen.gradle.SpringGradleSubplugin

plugin 21:
    id: kotlin.kotlin-dsl-project
    version: 6.8.3
    implementationClass: org.gradle.kotlin.dsl.provider.plugins.KotlinScriptBasePlugin

It is a multiproject setup. I just posted the plugins for the afflicted subproject.

aalmiray commented 3 years ago

Well that's strange. I've create both a single and a multi project build with just Java projects and have not encountered the problem, yet.