/
gr.ev.vl
/
TestGen
Обзор
Документация
Войти
/
gr.ev.vl
/
TestGen
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
scripts/run_tests.cmd
59 строк
1 KB
gr.ev.vl
Initial commit
06 июн 2026, 02:41
06 июн 2026, 02:41
02fb1fb
Код
Авторство
О чём код?
@echo off chcp 1251 >nul title TestGen � ����� cd /d "E:\_GEV\_My_project\TestGen\backend" if not exist ".venv\Scripts\python.exe" ( echo [] ����������� ��������� �� �������. pause exit /b 1 ) call .venv\Scripts\activate.bat set "PYTHONPATH=E:\_GEV\_My_project\TestGen\backend\src;%PYTHONPATH%" :menu echo ============================================ echo ������ ������ TestGen echo ============================================ echo. echo [1] ��� ����� echo [2] ������ ��������� (unit) echo [3] ������ �������������� (integration) echo [4] � ��������� (coverage) echo [5] ���������� ���� echo [0] ����� echo. set /p TEST_MODE="�������� ����� [1]: " if "%TEST_MODE%"=="" set "TEST_MODE=1" if "%TEST_MODE%"=="1" ( pytest tests/ -v --tb=short goto :end ) if "%TEST_MODE%"=="2" ( pytest tests/unit/ -v --tb=short goto :end ) if "%TEST_MODE%"=="3" ( pytest tests/integration/ -v --tb=short goto :end ) if "%TEST_MODE%"=="4" ( pytest tests/ --cov=src/testgen --cov-report=html --cov-report=term echo. echo �����: htmlcov\index.html start htmlcov\index.html goto :end ) if "%TEST_MODE%"=="5" ( set /p TEST_FILE="���� � �����: " pytest %TEST_FILE% -v --tb=short goto :end ) if "%TEST_MODE%"=="0" goto :end goto :menu :end pause