Merge pull request #26 from Snider/fix-go-test-coverage

refactor(tests): Co-locate tests with source code
This commit is contained in:
Snider 2025-11-02 23:18:53 +00:00 committed by GitHub
commit 5f4682953b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 2 deletions

5
.gitignore vendored
View file

@ -2,3 +2,8 @@ node_modules
package-lock.json
.idea
go.sum
covdata/
merged_covdata/
coverage.txt
coverage.html
coverage.out

View file

@ -2,9 +2,9 @@ version: '3'
tasks:
test:
desc: "Run all tests"
desc: "Run all tests and generate a coverage report"
cmds:
- go test -v -coverpkg=github.com/Snider/Enchantrix/pkg/crypt,github.com/Snider/Enchantrix/pkg/enchantrix,github.com/Snider/Enchantrix/pkg/trix ./...
- go test -v -coverprofile=coverage.out ./...
build:
desc: "Build the project"