firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.35k stars 134 forks source link

coverage_format validation error #1327

Closed dzwicker closed 2 weeks ago

dzwicker commented 2 months ago

Minimal .gitlab-ci.yml illustrating the issue

---
coverage:report:
  artifacts:
    reports:
      coverage_report:
        coverage_format: jacoco
        path: build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml

Observed behavior

gitlab-ci-local --list
Invalid .gitlab-ci.yml configuration!
    • 'coverage_format' property must be one of [cobertura] (found jacoco) at kotlin:test:coverage:report.artifacts.reports.coverage_report.coverage_format

Expected behavior No error, this configuration is valid according the official documentation (new in current release) artifacts:reports:coverage_report

Host information macOS gitlab-ci-local 4.53.0

firecow commented 2 months ago

https://github.com/firecow/gitlab-ci-local/pull/1320 This one will fix it.