Skip to content

Commit 288cb26

Browse files
authored
Merge pull request #36 from beneite/feature
moving the extent report to target/test-output/extent-Report
2 parents 0e0bdc1 + 26c07bd commit 288cb26

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/pipeline-manual-run.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/main/java/com/asismisr/utils/extentreport/ExtentReportUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)