Skip to content

Commit

Permalink
Add test coverage output to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mproffitt committed Nov 12, 2023
1 parent 5bb044e commit 5abe819
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ TBD

TBD

## Building

```shell
# Run code generation - see input/generate.go
$ go generate ./...
# Lint the code
$ docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/v1.54.2:/root/.cache -w /app golangci/golangci-lint:v1.54.2 golangci-lint run
# testing
$ go test ./... -coverprofile=cover.out && go tool cover -html=cover.out
? github.com/giantswarm/crossplane-fn-describe-nodegroups/pkg/composite/v1beta1 [no test files]
? github.com/giantswarm/crossplane-fn-describe-nodegroups/pkg/input/v1beta1 [no test files]
ok github.com/giantswarm/crossplane-fn-describe-nodegroups 0.022s coverage: 69.9% of statements
$ docker buildx build .
```

## Known Issues

[Crossplane]: https://crossplane.io
Expand Down

0 comments on commit 5abe819

Please sign in to comment.