Skip to content

Commit

Permalink
update cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 16, 2021
1 parent e933034 commit a175f28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aemdesign-testing/asciidoctor-convert-reports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ if ( -Not( $SILENT ) )

printSectionLine "Fixing report asset paths:"
printSectionLine " - ${REPORT_ROOT}/${TEST_DRIVER_NAME}/test-screenshots/"
printSectionLine " - ${REPORT_ROOT}/${TEST_DRIVER_NAME}/test-reports/"
printSectionLine " - ${REPORT_ROOT}/src/test/screenshots/${TEST_DRIVER_NAME}/RemoteWebDriver/"

$SPOCK_REPORTS = Get-ChildItem "${TEST_DRIVER_NAME}" *.ad -rec
foreach ($REPORT in $SPOCK_REPORTS)
{
(Get-Content $REPORT.PSPath) |
Foreach-Object { $_ -replace "(?<=(link|image)\:).*\/${TEST_DRIVER_NAME}\/test-screenshots\/", "${REPORT_ROOT}/${TEST_DRIVER_NAME}/test-screenshots/" } |
Foreach-Object { $_ -replace "(?<=(link|image)\:).*\/${TEST_DRIVER_NAME}\/test-reports\/", "${REPORT_ROOT}/${TEST_DRIVER_NAME}/test-reports/" } |
Foreach-Object { $_ -replace "(?<=(link|image)\:).*\/${TEST_DRIVER_NAME}\/RemoteWebDriver\/", "${REPORT_ROOT}/src/test/screenshots/${TEST_DRIVER_NAME}/RemoteWebDriver/" } |
Set-Content $REPORT.PSPath
}
Expand Down

0 comments on commit a175f28

Please sign in to comment.