Updates the `Taskfile.yml` to include the `tdd/` directory's tests in the coverage calculation for the `pkg/` directory by using the `-coverpkg` flag. This ensures that the coverage reports accurately reflect the state of the codebase. Also, this commit includes the necessary environment configuration to fix a known issue in Go 1.25 that caused the `go: no such tool "covdata"` error.
12 lines
297 B
YAML
12 lines
297 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
test:
|
|
desc: "Run all tests"
|
|
cmds:
|
|
- go test -v -coverpkg=github.com/Snider/Enchantrix/pkg/crypt,github.com/Snider/Enchantrix/pkg/enchantrix,github.com/Snider/Enchantrix/pkg/trix ./...
|
|
|
|
build:
|
|
desc: "Build the project"
|
|
cmds:
|
|
- go build -v ./...
|