not able to find report-template.hbs
shortcut2yp opened this issue · 10 comments
Added ortoni-report 1.0.7 as dev dependency and added it in reporter config.
On running the test cases getting below error.
Error in reporter Error: ENOENT: no such file or directory, open '/Users/automation-playwright/report-template.hbs'
Seems this is added in .gitignore file of the repo.
Hi, hbs file should be within the dist folder, which is not included in the git.
If you go to node_modules/ortoni-report/dist you should see this.
Could you please share the playwright.config reporting part to understand the issue.
reporter: [['list', { printSteps: true }],["html",{open:"never"}],['json', { outputFile: 'results.json' }],['ortoni-report']]
Yes, I am also facing the same issue. Thanks for the report.
I will update now.
Released version 1.0.8, it should be fixed. pls check.
can it be because I am using UNIX based system and the code has
const screenshotsDir = path.join(process.cwd(), 'screenshots\\' + test.id);})
whereas UNIX uses /
to determine folder structure.
can we use const screenshotsDir = path.join(process.cwd(), 'screenshots', test.id);
in place of above code ?
The backslash (\\) is treated as a literal character in the string. This means the path separator is explicitly Windows-style, regardless of the operating system. If run on a Unix-like system (Linux, macOS), the backslash might not be interpreted as a path separator, leading to potential issues.
Great, I am providing a fix.
Fixed with version 1.0.9
Also custom attributes like projectName, authorName & testType - https://www.npmjs.com/package/ortoni-report?activeTab=readme
Do check it out & if any issue pls create a new one.
Thanks for the support.