-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_tests.bat
More file actions
36 lines (30 loc) · 774 Bytes
/
run_tests.bat
File metadata and controls
36 lines (30 loc) · 774 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
34
35
36
@echo off
setlocal enabledelayedexpansion
title Test Runner
color 0A
:menu
cls
echo ====================================
echo Test Runner
echo ====================================
echo 1. Run PurchaseOrder test
echo 2. Exit
echo ====================================
set /p choice=Choose an option (1-2):
if "%choice%"=="1" set "profile=PurchaseOrder"
if "%choice%"=="2" goto exit
if not defined profile (
echo Invalid option. Please choose a number between 1 and 2.
pause
goto menu
)
echo Running mvn test -P%profile%...
start cmd /k "mvn test -Dsurefire.suiteXmlFiles=%profile%Test.xml && pause && exit"
echo Command started in a new window. Please wait for it to finish executing.
pause
set "profile="
goto menu
:exit
echo Exiting...
pause
exit