Files
tilbudgivern/carpenter-agent-quickstart.sh

51 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
# 🔨 Carpenter Agent Quick Start
# This script runs the complete carpenter agent test suite
set -e
echo "🔨 CARPENTER AGENT - QUICK START"
echo "=================================="
echo ""
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Check if node is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed!"
exit 1
fi
echo -e "${BLUE}Step 1: Generating Test Data (API-based)${NC}"
echo "==========================================="
node carpenter-agent-api.js --save-fixtures
echo ""
echo -e "${BLUE}Step 2: Test Data Summary${NC}"
echo "=========================="
echo ""
echo "Generated files:"
ls -1 test-results/carpenter-test-data/ | grep "quote-" | wc -l | xargs echo " ✅ Total quotes:"
echo " 📄 Summary: test-results/carpenter-test-data/QUOTES_SUMMARY.json"
echo " 📦 Fixtures: test-results/carpenter-test-data/FIXTURES.json"
echo ""
echo -e "${GREEN}✅ Carpenter Agent Setup Complete!${NC}"
echo ""
echo "Next steps:"
echo " 1. Run UI tests:"
echo " cd tests && npx playwright test carpenter-agent.spec.js --headed"
echo ""
echo " 2. View test data:"
echo " cat test-results/carpenter-test-data/QUOTES_SUMMARY.json"
echo ""
echo " 3. Use for testing:"
echo " - Load test fixtures from: test-results/carpenter-test-data/FIXTURES.json"
echo " - Individual quotes in: test-results/carpenter-test-data/quote-*.json"
echo ""
echo "📖 Full guide: docs/CARPENTER_AGENT_GUIDE.md"