File tree Expand file tree Collapse file tree
src/main/java/com/asismisr/utils/extentreport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,18 +10,22 @@ jobs:
1010 - name : Checking out the repo
1111 uses : actions/checkout@v4
1212
13+ - name : listing the files before running
14+ run : find .
15+
1316 - name : Build the project (compile and install)
14- run : mvn clean test -DskipTests
17+ run : mvn clean install -DskipTests
1518
1619 - name : Running the test cases
1720 run : mvn clean test -Dsuite=vendor-portal.xml
1821
19- - name : listing the files in target folder
22+ - name : listing the files after test run
2023 run : find .
2124
2225 - name : Publishing the Test artifacts
2326 if : always()
2427 uses : actions/upload-artifact@v4
2528 with :
2629 name : test-reports-upload-extentReport
27- path : /test-output/extent-Report
30+ path : target/test-output/extent-Report
31+ retention-days : 100 # for 100 days the report will persist after that it will be deleted
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ private ExtentReportUtils(){
2222
2323 private static final Logger log = LoggerFactory .getLogger (ExtentReportUtils .class );
2424 public static String TIMESTAMP = CommonUtilis .getCurrentDateTimeInSpecifiedFormat ( "yyyy_MM_dd_HH_mm_ss" );
25- public static final String EXTENT_REPORT_PATH = System . getProperty ( "user.dir" )+ " /test-output/extent-Report/extentReport" +TIMESTAMP +".html" ;
25+ public static final String EXTENT_REPORT_PATH = "target /test-output/extent-Report/extentReport" +TIMESTAMP +".html" ;
2626 private static ExtentReports extentReports ;
2727 public static ExtentSparkReporter extentSparkReporter ;
2828
You can’t perform that action at this time.
0 commit comments