Skip to content

Generate PR comment(s) with Code Coverage data (UI Tests) #246

@dylan-smith

Description

@dylan-smith

Tried to do it here (#240) but the data didn't look correct, and was too verbose. Ideally just a single % number would do.

This was the YML for that previous attempt:

- name: Code Coverage Summary Report
  uses: irongut/[email protected]
  if: always()
  with:
    filename: src/DivingCalculator.Web/test-results/playwright/code-coverage/cobertura/code-coverage.cobertura.xml
    badge: true
    format: 'markdown'
    output: 'both'

- name: Add Coverage PR Comment
  uses: marocchino/sticky-pull-request-comment@v2
  with:
    recreate: true
    header: UI Tests Code Coverage
    path: code-coverage-results.md

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions