Skip to content

Commit

Permalink
chore: update reporter code
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jan 12, 2024
1 parent 2eeab44 commit 873f1db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_reporter/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ export const generateTestReport = (testData, output, result) => {

export const initaliseReport = () => {
const htmlTemplate = generateHTMLTemplate();
if (!fs.existsSync('test_reports')){
fs.mkdirSync('test_reports');
}
fs.writeFileSync('test_reports/test-report.html', htmlTemplate);
console.log('Report initialised');
};

0 comments on commit 873f1db

Please sign in to comment.