Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbagmar committed Feb 7, 2025
1 parent 15448c6 commit 515481a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static def getCurrentTimestamp() {
return df.format(today)
}

def logDir = "./target/" + getMonth() + "/" + getCurrentDatestamp() + "/" + getCurrentTimestamp()
def logDir = "./target/" + getMonth() + "/" + getCurrentDatestamp() + "/" + getCurrentTimestamp()

def copyRpPropertiesIfMissing() {
def rpFile = file('src/test/resources/reportportal.properties')
Expand Down Expand Up @@ -358,9 +358,10 @@ test {
println "Using LOG_DIR for tests: ${logDir}"
systemProperty "LOG_DIR", "${logDir}"

if (!logDir.exists()) {
logDir.mkdirs()
println "Created log directory at: ${logDir.absolutePath}"
def logFileDir = new File(logDir)
if (!logFileDir.exists()) {
logFileDir.mkdirs()
println "Created log directory at: ${logFileDir.absolutePath}"
}
}
useTestNG()
Expand Down

0 comments on commit 515481a

Please sign in to comment.