You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
626 B
23 lines
626 B
@echo off
|
|
chcp 65001 >nul
|
|
setlocal enabledelayedexpansion
|
|
|
|
set JAVA_HOME=E:\2025-2026\GitAIOps\jdk
|
|
set PATH=%JAVA_HOME%\bin;%PATH%
|
|
|
|
echo Compiling project...
|
|
call mvn compile -q -DskipTests >nul 2>&1
|
|
|
|
echo Running tests and generating report...
|
|
|
|
for /f "delims=" %%i in ('dir /b /s "%USERPROFILE%\.m2\repository\org\xerial\sqlite-jdbc\3.36.0.3\sqlite-jdbc-3.36.0.3.jar" 2^>nul') do set SQLITE_JAR=%%i
|
|
|
|
"%JAVA_HOME%\bin\java.exe" -Dfile.encoding=UTF-8 -cp "target/classes;%SQLITE_JAR%" com.smartlibrary.TestRunner > test_report.txt 2>&1
|
|
|
|
echo.
|
|
echo Test report generated: test_report.txt
|
|
echo.
|
|
type test_report.txt
|
|
echo.
|
|
pause
|