This commit is contained in:
Eden Kirin
2025-10-31 19:04:40 +01:00
parent ca10b01fb0
commit 4e4827d640
12 changed files with 2612 additions and 10 deletions

View File

@ -55,6 +55,56 @@ go build -o entity-maker ./cmd/entity-maker
The static binary (`make build`) is **fully portable** and will run on any Linux x86-64 system without external dependencies.
## Testing
Run tests using Makefile commands:
```bash
# Run all tests
make test
# Run tests with verbose output
make test-verbose
# Run tests with coverage summary
make test-coverage
# Generate HTML coverage report
make coverage
# Then open coverage.html in your browser
# Run only short/fast tests
make test-short
# Run benchmarks
make bench
```
Or using Go directly:
```bash
# Run all tests
go test ./...
# Run with coverage
go test -cover ./...
# Run specific package
go test ./internal/naming -v
# Generate coverage report
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out
```
**Test Coverage:**
- `internal/naming`: 97.1% ⭐
- `internal/generator`: 91.1% ⭐
- `internal/config`: 81.8%
- `internal/prompt`: 75.3%
- `internal/database`: 30.8%
- `cmd/entity-maker`: 0.0% (integration code - business logic tested in internal packages)
## Usage
### Interactive Mode