playwright-ctrf-json-report
playwright-ctrf-json-report copied to clipboard
Issue with Report Directory Permissions
Hi,
I have added the reporter to the playwright.config.ts file as follows:
reporter: [['playwright-dtrf-json-reporter', { outputDir: '/microsite/ctrf-report' }]]
However, I am encountering the following error:
Error in reporter: Error: EACCES: permission denied, mkdir '/microsite/ctrf-report'
at Object.mkdirSync (node:fs:1363:26)
at GenerateCtrfReport.onBegin
It seems that the output directory should be combined with the working-directory, but I am not sure how to resolve this issue.
Thank you!
Hi, Does using a relative path like this meet your requirements?
reporter: [['playwright-dtrf-json-reporter', { outputDir: 'microsite/ctrf-report' }]]
In the meantime, I'll work on improving how absolute paths are handled
Hi,
It should be defined similarly to how we do it in the other Playwright reporter.