Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobertura report formatter #225

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

chameleon82
Copy link

@chameleon82 chameleon82 commented Aug 11, 2022

This PR will add support for Cobertura output format.

It is useful in tools like gitlab-ci where cobertura can highlight code coverage in the PR ( addressed here )

Example of configuration:

  .settings(
    jacocoAggregateReportSettings := JacocoReportSettings(
      "Jacoco coverage aggregate report",
      None,
      JacocoThresholds(),
      Seq(JacocoCobertura.COBERTURA),
      "utf-8"
    )

output file:

target/scala-2.13/jacoco/report/aggregate/coverage-report/cobertura.xml

Checklist

  • Unit tests pass
  • You have read the contributing guide linked above.

@chameleon82
Copy link
Author

@xuwei-k could you help to review this pr?

@chameleon82
Copy link
Author

Hi @xuwei-k could you help to review again?

@chameleon82
Copy link
Author

@stringbean , @xuwei-k please help review this MR

@chameleon82
Copy link
Author

Hi @eed3si9n , may you help me to contribute into the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant