Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

feat(pdev): add e2e cli command for local CLI E2E tests

Boschced45cd5d903
diff --git a/pdev b/pdev
index 4d698e37..71f18950 100755
--- a/pdev
+++ b/pdev
@@ -27,6 +27,8 @@ COMMANDS=(
" system:πŸ”¬:System tests only"
"doctor:🩺:Setup dev environment"
"e2e:🐳:E2E tests (Docker)"
+ " curl:🐳:E2E curl tests"
+ " cli:🐳:E2E CLI tests"
"check go:πŸ§ͺ:Go only"
"check dashboard:πŸ§ͺ:Dashboard only"
"check security:πŸ§ͺ:Gosec security scan"
@@ -120,11 +122,20 @@ run_command() {
echo ""
exec bash scripts/test.sh system
;;
- "e2e")
- echo " ${ACCENT}${BOLD}🐳 E2E tests (Docker)${NC}"
+ "e2e"|"e2e curl")
+ echo " ${ACCENT}${BOLD}🐳 E2E Curl tests (Docker)${NC}"
echo ""
exec docker compose -f tests/e2e/docker-compose.yml up --build --abort-on-container-exit
;;
+ "e2e cli")
+ echo " ${ACCENT}${BOLD}🐳 E2E CLI tests (Docker)${NC}"
+ echo ""
+ echo " ${MUTED}Building static binary...${NC}"
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o tests/e2e/runner-cli/pinchtab ./cmd/pinchtab
+ echo " ${SUCCESS}βœ“${NC} Binary built"
+ echo ""
+ exec docker compose -f tests/e2e/docker-compose-cli.yml up --build --abort-on-container-exit
+ ;;
"dev") exec bash scripts/dev.sh ;;
"build") exec bash scripts/build.sh ;;
"binary") exec bash scripts/binary.sh ;;