Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ dist/

# Go workspace file
go.work
go.work.sum
go.work.sum

# Test coverage reports
coverage.out
coverage.html
1 change: 1 addition & 0 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ These commands can be executed from the project root:
- `make lint`: lint the code
- `make generate-docs`: generate Markdown documentation for every command
- `make test`: run unit tests
- `make coverage`: create unit test coverage report (output file: `coverage.html`)

### Repository structure

Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ test:
@echo ">> Running tests for the CLI application"
@go test ./... -count=1

# Test coverage
coverage:
@echo ">> Creating test coverage report for the CLI application"
@go test ./... -coverprofile=coverage.out || true
@go tool cover -html=coverage.out -o coverage.html

# Generate docs
generate-docs:
@echo ">> Generating docs..."
Expand Down