Skip to content

Commit 8973de1

Browse files
committed
docs: add test coverage badge and documentation
- Add Codecov badge to README header for code coverage visibility - Document test coverage and 443+ unit tests in Testing section - Add make test-coverage and make test-coverage-report commands to Development guide - Document bun test --coverage commands for local development - Improve documentation on testing practices and coverage workflows Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent 4e71b40 commit 8973de1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# opencoder
22

33
[![CI](https://github.com/opencodeco/opencoder/actions/workflows/ci.yml/badge.svg)](https://github.com/opencodeco/opencoder/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/opencodeco/opencoder/branch/main/graph/badge.svg)](https://codecov.io/gh/opencodeco/opencoder)
45

56
**Autonomous OpenCode Runner** - A TypeScript-powered CLI that uses the [OpenCode SDK](https://opencode.ai) to run fully autonomous development loops, creating plans and building them continuously without manual intervention.
67

@@ -434,6 +435,8 @@ Using Make (recommended):
434435
```bash
435436
make # Build release version
436437
make test # Run tests
438+
make test-coverage # Run tests with coverage report
439+
make test-coverage-report # Generate LCOV coverage report for CI
437440
make lint # Format and check code with Biome
438441
make clean # Remove build artifacts
439442
make install # Install to /usr/local/bin
@@ -447,9 +450,15 @@ bun install # Install dependencies
447450
bun run build # Build release executable
448451
bun run dev # Run in development
449452
bun test # Run tests
453+
bun test --coverage # Run tests with coverage report
454+
bun test --coverage --coverage-reporter=lcov # Generate LCOV coverage
450455
bunx biome check src/ # Check formatting/linting
451456
```
452457

458+
### Test Coverage
459+
460+
OpenCoder maintains high test coverage with 443+ unit tests across all modules. Coverage reports are generated automatically in CI and uploaded to [Codecov](https://codecov.io/gh/opencodeco/opencoder) for tracking.
461+
453462
## License
454463

455464
MIT License - See [LICENSE](LICENSE) file.

0 commit comments

Comments
 (0)