File size: 976 Bytes
11f6f66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Coverage Verification Tool

> 🌐 Language / Ngôn ngữ: **English** | [Tiếng Việt](README.vi.md)

This directory contains a script to verify code coverage across commit history.

## Files

- `verify-commit-coverage.sh` — iterates each commit in a range, checks coverage, produces report
- `coverage-report.md` — generated markdown report (gitignored)
- `results/` — per-commit raw logs (gitignored)

## Usage

From the project root:

```bash
bash manual-test-coverage/verify-commit-coverage.sh
```

Optionally specify a commit range:

```bash
bash manual-test-coverage/verify-commit-coverage.sh <base-sha> <head-sha>
```

Each commit is checked out, `yarn test:coverage` is run, coverage percentages are captured, and a markdown report is written to `coverage-report.md`.

## Requirements

- `yarn` and `vitest` with `--coverage` configured
- (Optional) `mise` — if available, the script will use it to restore the Node.js runtime environment for each commit