-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.bat
39 lines (36 loc) · 1.17 KB
/
run_tests.bat
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
36
37
38
39
@echo off
echo ===================================
echo Code Structure Analyzer Tests
echo ===================================
echo.
:: Try to activate virtual environment from either venv or .venv
if exist .venv\Scripts\activate (
call .venv\Scripts\activate
) else if exist venv\Scripts\activate (
call venv\Scripts\activate
) else (
echo Error: Could not find virtual environment.
exit /b 1
)
:: Process command-line arguments
if /I "%1"=="--all" (
echo Running ALL tests (including integration tests)
echo Note: Integration tests require LM Studio running on localhost:1234
python -m pytest -v --rootdir=.
goto :end
) else if /I "%1"=="--integration" (
echo Running ONLY integration tests
echo Note: Integration tests require LM Studio running on localhost:1234
python -m pytest -v -m "integration" --rootdir=.
goto :end
) else (
echo Running unit tests only (excluding integration tests)
echo To run integration tests too, use: run_tests.bat --all
echo To run only integration tests, use: run_tests.bat --integration
echo.
python -m pytest -v -m "not integration" --rootdir=.
goto :end
)
:end
echo.
echo Tests completed.