From c2d6dea02a047200a949cfd72c9eb94814e3cc06 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 24 Apr 2026 15:08:46 +0100 Subject: [PATCH] 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 Via-codex-lane: supervised by Cerberus on Athena #106 request Closes tasks.lthn.sh/view.php?id=290 --- tests/cli/webview/Taskfile.yaml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 tests/cli/webview/Taskfile.yaml diff --git a/tests/cli/webview/Taskfile.yaml b/tests/cli/webview/Taskfile.yaml new file mode 100644 index 0000000..39cdaad --- /dev/null +++ b/tests/cli/webview/Taskfile.yaml @@ -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