I'm trying to generate multiple reporting folders inside a folder for JUnit and HTML reports, seems like playwright will override the other folder. after tests, I can see only the HTML report folder and other JUnit results won't be available. is there any way to have multiple results folders under one folder?
Asked
Active
Viewed 1,833 times
0

Sujith
- 163
- 1
- 1
- 7
-
What does your configuration look like? – Raju Jul 21 '22 at 08:00
-
attached config image – Sujith Jul 21 '22 at 08:33
-
It is recommended to avoid using images for code. if you post the code, it would be easier for everyone to update it as necessary and include it in the answer. – Raju Jul 21 '22 at 09:04
-
due to character limit, I was not able to post the config, hence pasted image – Sujith Jul 21 '22 at 09:16
1 Answers
1
outputDir
is used for another purpose other than test results based on the information available here. So I would recommend against storing test results inside it. Instead, you can do something like this.
const path = require('path');
const resultsDir = path.resolve('./', 'output')
reporter: [ ['json', { outputFile: `${resultsDir}/json/results.json` }] ]

Raju
- 2,299
- 2
- 16
- 19