Skip to content

Commit

Permalink
force all screenshots to have full path
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Oct 29, 2019
1 parent 1919c2c commit 81eaa00
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

String gebEnvReportsDir = System.getProperty("geb.build.reportsDir")
def reportImagePath = System.properties['user.dir'] + "/" + System.properties['project.buildDirectory'] + "/test-reports/geb/" //"../../test-reports/geb/"
def rootPath = "../"

println "REPORT: reportImagePath=" + reportImagePath

def rootPath = System.properties['user.dir'] + "/"
def srcRelativeToHtmlPath = "" // "../../"
def linkPathPrefix = ""
def imagePathPrefix = ""
Expand Down Expand Up @@ -102,6 +105,9 @@ Time: $totalTime
// println "REPORT: gebTestResults - iteration block file: ${afile}"

if (filePathFull.endsWith(pathCheckEndImage)) {

print "filePathFull=" + filePathFull

//screenshot detection
if (filePathFull.startsWith(pathCheckStartSource)) {
blockScreenshots = blockScreenshots << """ .Source\n"""
Expand Down

0 comments on commit 81eaa00

Please sign in to comment.