Files
Aggregator/Tests/run_tests.bat
Semen_Babenishev 4420c5c60a Initial: Nutshell Site Aggregator MVP Phase 1
- Backend: Express + TypeORM + PostgreSQL, JWT + OTP auth
- Frontend: React + Vite + Tailwind, 4 pages (Home/Login/Orders/404)
- Docker Compose: PostgreSQL 15 on port 5434
- Tests: 16 tests passing (API + Frontend)
- ai_state: rules.md, INSTRUCTIONS.md, session tasks
- Examples: brand book PDF, logos, page mockups
2026-07-16 11:38:08 +04:00

36 lines
1.5 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
chcp 65001 >nul
echo.
echo ============================================
echo Nutshell Site — Полный прогон тестов
echo ============================================
echo.
echo Убедитесь, что запущены:
echo 1. PostgreSQL Docker: docker-compose up -d postgres
echo 2. Backend: cd backend ^&^& npm run dev
echo 3. Frontend: cd frontend ^&^& npm run dev
echo.
echo ─────────────────────────────────────────────
echo Блок 1: API-тесты (backend :3001)
echo ─────────────────────────────────────────────
node Tests\api_tests.mjs
if %ERRORLEVEL% neq 0 (
echo.
echo [FAIL] API-тесты провалены. Остановка.
exit /b 1
)
echo.
echo ─────────────────────────────────────────────
echo Блок 2: Frontend-тесты (Vite :3000)
echo ─────────────────────────────────────────────
node Tests\frontend_tests.mjs
if %ERRORLEVEL% neq 0 (
echo.
echo [FAIL] Frontend-тесты провалены.
exit /b 1
)
echo.
echo ============================================
echo ВСЕ ТЕСТЫ ПРОШЛИ УСПЕШНО
echo ============================================