docs: add local code coverage instructions

This commit is contained in:
2026-03-20 14:02:41 +05:30
parent ffdc5451ab
commit 0b88ea0763
2 changed files with 15 additions and 1 deletions
+14 -1
View File
@@ -153,7 +153,7 @@ bun dist/cli.js close test-session
│ ├── types.ts # Shared TypeScript types
│ ├── core/
│ │ ├── index.ts # Core exports
│ │ ├── launch.ts # Launch session logic
│ │ ├── open.ts # Launch session logic
│ │ ├── close.ts # Close session logic
│ │ └── utils.ts # Helper functions
│ └── tools/
@@ -166,6 +166,19 @@ bun dist/cli.js close test-session
└── README.md
```
## Local code coverage
The test suite can generate a coverage report locally.
```bash
# Run tests with coverage (HTML report generated in ./coverage)
bun test --coverage
# Open the HTML report
open coverage/index.html # macOS
```
The `coverage` directory is ignored by Git but can be inspected to see which lines are exercised.
## License
MIT