feat(go-webview): add CLI test Taskfile for build and unit test validation (AX-10)
Adds tests/cli/webview/Taskfile.yaml with canonical build/test/vet/default targets plus test-unit and CHROME_ADDR-gated test-integration (skipped cleanly when no Chrome endpoint set). default deps-chains build/test/vet per Wave 2 convention. Co-authored-by: Codex <noreply@openai.com> Via-codex-lane: supervised by Cerberus on Athena #106 request Closes tasks.lthn.sh/view.php?id=290
This commit is contained in:
parent
4a2d5579e1
commit
c2d6dea02a
1 changed files with 42 additions and 0 deletions
42
tests/cli/webview/Taskfile.yaml
Normal file
42
tests/cli/webview/Taskfile.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
version: "3"
|
||||
|
||||
env:
|
||||
GOWORK: off
|
||||
GOCACHE: /tmp/go-webview-go-build-cache
|
||||
|
||||
tasks:
|
||||
build:
|
||||
dir: ../../..
|
||||
cmds:
|
||||
- go build ./...
|
||||
|
||||
test:
|
||||
dir: ../../..
|
||||
cmds:
|
||||
- go test -count=1 -race ./...
|
||||
|
||||
vet:
|
||||
dir: ../../..
|
||||
cmds:
|
||||
- go vet ./...
|
||||
|
||||
test-unit:
|
||||
dir: ../../..
|
||||
cmds:
|
||||
- go test -count=1 -race ./... -run Unit
|
||||
|
||||
test-integration:
|
||||
dir: ../../..
|
||||
cmds:
|
||||
- |
|
||||
if [ -z "${CHROME_ADDR:-}" ]; then
|
||||
echo "Skipping integration tests: CHROME_ADDR unset (requires Chrome on localhost:9222)"
|
||||
exit 0
|
||||
fi
|
||||
go test -count=1 ./... -run Integration -tags integration
|
||||
|
||||
default:
|
||||
deps:
|
||||
- build
|
||||
- test
|
||||
- vet
|
||||
Loading…
Add table
Reference in a new issue