-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.bat
More file actions
33 lines (29 loc) · 743 Bytes
/
Copy pathrun_tests.bat
File metadata and controls
33 lines (29 loc) · 743 Bytes
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
@echo off
chcp 65001 >nul
echo ========================================
echo Running MLSharp Unit Tests
echo ========================================
echo.
if not exist "test_app.py" (
echo [WARNING] Test file test_app.py not found
echo.
echo No unit tests configured for this project.
echo.
echo Skipped tests.
echo.
echo ========================================
echo Tests skipped (no test file found)
echo ========================================
pause
exit /b 0
)
python_env\python.exe test_app.py
echo.
echo ========================================
if %ERRORLEVEL% EQU 0 (
echo All tests passed!
) else (
echo Some tests failed!
)
echo ========================================
pause