Skip to content

Add JaCoCo coverage execution to tsql-scriptdom-astgen module #27

Closed

Description

@fupacat

Problem

Currently, jacoco-maven-plugin is only configured to run in tsql-scriptdom-core.
Because tsql-scriptdom-astgen does not execute JaCoCo, its tests (AstSchemaParserTest, AstCodeGeneratorTest) do not generate JaCoCo execution data. Consequently, SonarCloud reports 0.0% coverage for AstSchemaParser.java and other code in tsql-scriptdom-astgen, significantly pulling down overall repository coverage.

Proposed Changes

  • In tsql-scriptdom-astgen/pom.xml, add the jacoco-maven-plugin with prepare-agent and report goals (similar to tsql-scriptdom-core/pom.xml).
  • Update root pom.xml sonar.coverage.jacoco.xmlReportPaths property to include all module reports (or a wildcard pattern, e.g. ${project.basedir}/**/target/site/jacoco/jacoco.xml).

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions