Skip to content

Commit

Permalink
Merge pull request #1789 from IBMa/issue-1755
Browse files Browse the repository at this point in the history
fix(node,karma,cypress): Swap ":" for "-" in timestamps due to Windows restrictions on filenames
  • Loading branch information
ErickRenteria authored Jan 17, 2024
2 parents 50b1c06 + e78475d commit ceb06e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/module/src/report/ACReporterCSV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ACReporterCSV implements IReporter {
}
}
let startScanD = new Date(startScan);
let reportFilename = `results_${startScanD.toISOString()}.csv`;
let reportFilename = `results_${startScanD.toISOString().replace(/:/g,"-")}.csv`;
if (config.outputFilenameTimestamp === false) {
reportFilename = `results.csv`;
}
Expand Down
2 changes: 1 addition & 1 deletion common/module/src/report/ACReporterJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ACReporterJSON implements IReporter {
}
}
let startScan = new Date(storedScan.engineReport.summary.startScan);
let reportFilename = `summary_${startScan.toISOString()}.json`;
let reportFilename = `summary_${startScan.toISOString().replace(/:/g,"-")}.json`;
if (config.outputFilenameTimestamp === false) {
reportFilename = `summary.json`;
}
Expand Down
2 changes: 1 addition & 1 deletion common/module/src/report/ACReporterXLSX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class ACReporterXLSX implements IReporter {

// const buffer: any = await workbook.xlsx.writeBuffer();
let startScan = new Date(storedReport.engineReport.summary.startScan);
let reportFilename = `results_${startScan.toISOString()}.xlsx`;
let reportFilename = `results_${startScan.toISOString().replace(/:/g,"-")}.xlsx`;
if (config.outputFilenameTimestamp === false) {
reportFilename = `results.xlsx`;
}
Expand Down

0 comments on commit ceb06e6

Please sign in to comment.