add regression test for SIGINT behavior

See go-task/task/#458

Helper (sleepit) and test code based on https://github.com/marco-m/timeit
This commit is contained in:
Marco Molteni
2021-04-20 17:33:01 +02:00
committed by Wes McNamee
parent cdff0c60d9
commit bffb6e1a07
4 changed files with 417 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ tasks:
desc: Cleans temp files and folders
cmds:
- rm -rf dist/
- rm -rf tmp/
lint:
desc: Runs golint
@@ -52,9 +53,15 @@ tasks:
- golint {{catLines .GO_PACKAGES}}
silent: true
sleepit:
desc: Builds the sleepit test helper
dir: tmp
cmds:
- go build ../internal/sleepit
test:
desc: Runs test suite
deps: [install]
deps: [install, sleepit]
cmds:
- go test {{catLines .GO_PACKAGES}}