Skip to content

Commit 76b3ed3

Browse files
committed
feat: initial commit
1 parent e75c354 commit 76b3ed3

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ jobs:
6666
if: runner.os != 'Windows'
6767
shell: bash
6868
run: |
69-
archive="diff-cover-${{ github.ref_name }}-${{ matrix.target }}.tar.gz"
69+
archive="diff-coverage-${{ github.ref_name }}-${{ matrix.target }}.tar.gz"
7070
tar -czf "$archive" -C dist .
7171
echo "archive=$archive" >> "$GITHUB_OUTPUT"
7272
7373
- name: Package (zip)
7474
if: runner.os == 'Windows'
7575
shell: pwsh
7676
run: |
77-
$archive = "diff-cover-${{ github.ref_name }}-${{ matrix.target }}.zip"
77+
$archive = "diff-coverage-${{ github.ref_name }}-${{ matrix.target }}.zip"
7878
Compress-Archive -Path dist\* -DestinationPath $archive
7979
"archive=$archive" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
8080
8181
- name: Upload release assets
8282
uses: softprops/action-gh-release@v2
8383
with:
8484
files: |
85-
diff-cover-${{ github.ref_name }}-${{ matrix.target }}.*
85+
diff-coverage-${{ github.ref_name }}-${{ matrix.target }}.*

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ fast, reliable feedback you can trust.
77
## Usage
88

99
```shell
10-
diff-cover coverage.xml --diff-file diff.diff
10+
diff-coverage coverage.xml --diff-file diff.diff
1111

1212
# Multiple coverage inputs (repeat or comma‑separated)
13-
diff-cover coverage1.xml coverage2.xml --diff-file diff.diff
13+
diff-coverage coverage1.xml coverage2.xml --diff-file diff.diff
1414

1515
# Multiple coverage inputs in a directory
16-
diff-cover ./coverage/ --diff-file diff.diff
16+
diff-coverage ./coverage/ --diff-file diff.diff
1717

1818
# Fail the build if diff coverage drops below a threshold
19-
diff-cover ./coverage/ coverage.xml --diff-file diff.diff --fail-under 80
19+
diff-coverage ./coverage/ coverage.xml --diff-file diff.diff --fail-under 80
2020

2121
# Output to CI formats
22-
diff-cover coverage.xml --diff-file diff.diff --output gitlab=diff-cover.json
23-
diff-cover coverage.xml --diff-file diff.diff --output json=diff-cover.json --output summary
22+
diff-coverage coverage.xml --diff-file diff.diff --output gitlab=diff-cover.json
23+
diff-coverage coverage.xml --diff-file diff.diff --output json=diff-cover.json --output summary
2424
```
2525

2626
Options

src/cli/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub struct OutputTarget {
7676

7777
#[derive(Debug, Parser)]
7878
#[command(
79-
name = "diff-cover",
79+
name = "diff-coverage",
8080
version,
8181
about = "Scan diffs for coverage changes.",
8282
arg_required_else_help = true

0 commit comments

Comments
 (0)