File size: 943 Bytes
50f8987 89425e7 50f8987 89425e7 50f8987 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#!/bin/bash
# Colors and formatting
BLUE='\033[0;34m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
BOLD='\033[1m'
DIVIDER="=================================================================="
echo -e "\n${BLUE}${DIVIDER}"
echo -e "${BOLD}🔨 BUILD PHASE"
echo -e "${BLUE}${DIVIDER}${NC}"
# Build test image
echo -e "${YELLOW}Building test image...${NC}"
docker build -t simplify-test -f Dockerfile.test .
echo -e "\n${BLUE}${DIVIDER}"
echo -e "${BOLD}🧪 FRONTEND TESTS"
echo -e "${BLUE}${DIVIDER}${NC}"
# Run frontend tests
echo -e "${YELLOW}Running frontend tests...${NC}"
docker run --rm simplify-test npm test --prefix frontend
echo -e "\n${BLUE}${DIVIDER}"
echo -e "${BOLD}🐍 BACKEND TESTS"
echo -e "${BLUE}${DIVIDER}${NC}"
# Run backend tests
echo -e "${YELLOW}Running backend tests...${NC}"
docker run --rm --env-file .env simplify-test pytest backend/tests
echo -e "\n${GREEN}✨ Testing complete!${NC}\n" |