https://github.com/levonet/clover-diff-action
Calculate the difference between the two coverage reports
https://github.com/levonet/clover-diff-action
Last synced: 11 months ago
JSON representation
Calculate the difference between the two coverage reports
- Host: GitHub
- URL: https://github.com/levonet/clover-diff-action
- Owner: levonet
- Created: 2021-03-02T22:21:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T05:48:30.000Z (over 3 years ago)
- Last Synced: 2025-07-02T01:47:54.919Z (12 months ago)
- Language: JavaScript
- Size: 570 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clover-diff-action
[](https://github.com/levonet/clover-diff-action/actions/workflows/test.yml)
Calculate the difference between the two coverage reports.
## Inputs
### `filename-base`
**Required** The filename of the XML report with which it is compared.
### `filename-head`
**Required** The filename of the XML report being compared.
## Outputs
### `diff-coverage`
Coverage difference between reports.
### `diff-coverage-short`
Human readable coverage difference between reports.
### `diff-source-elements`
Difference of source elements.
### `diff-source-coveredelements`
Difference of source covered elements.
### `base-coverage`
Coverage from base file report.
### `base-source-elements`
Code elements of source code from base file report.
### `base-source-coveredelements`
Covered elements of source code from base file report.
### `head-coverage`
Coverage from head file report.
### `head-source-elements`
Code elements of source code from head file report.
### `head-source-coveredelements`
Covered elements of source code from head file report.
### `head-test-elements`
Code elements of tests from head file report.
### `head-test-testruns`
Test runs from head file report.
### `head-test-testpasses`
Test passes from head file report.
### `head-test-testfailures`
Test failures from head file report.
### `head-test-testduration`
Test duration in milliseconds (ms) from head file report.
## Example usage
```yaml
- uses: levonet/clover-diff-action@master
id: clover-diff
with:
filename-base: clover-master.xml
filename-head: clover-branch.xml
- run: echo ${{ steps.clover-diff.outputs.diff-coverage }}
```