-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopen-allure-report.bat
More file actions
37 lines (30 loc) · 901 Bytes
/
Copy pathopen-allure-report.bat
File metadata and controls
37 lines (30 loc) · 901 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
37
@echo off
echo ========================================
echo ALLURE REPORT - QUICK VIEW
echo ========================================
cd /d "C:\Users\KANNAN\IdeaProjects\DemoProject-Amazon Q"
echo Checking for Allure installation...
where allure >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo ⚠️ Allure CLI not found. Using Maven instead...
goto maven_method
)
echo [1/2] Generating Allure report with CLI...
allure generate target/allure-results --clean -o target/allure-report
if %ERRORLEVEL% EQU 0 (
echo ✅ Report generated successfully
echo [2/2] Opening Allure report...
allure open target/allure-report
goto end
)
:maven_method
echo [1/2] Generating report with Maven...
call mvn allure:report
echo [2/2] Starting Allure server...
echo Browser will open automatically
echo Press Ctrl+C to stop server
call mvn allure:serve
:end
echo.
echo Report session ended.
pause