Merge pull request #26 from Snider/fix-go-test-coverage
refactor(tests): Co-locate tests with source code
This commit is contained in:
commit
5f4682953b
5 changed files with 7 additions and 2 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -2,3 +2,8 @@ node_modules
|
|||
package-lock.json
|
||||
.idea
|
||||
go.sum
|
||||
covdata/
|
||||
merged_covdata/
|
||||
coverage.txt
|
||||
coverage.html
|
||||
coverage.out
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue