wdio-cucumberjs-json-reporter
wdio-cucumberjs-json-reporter copied to clipboard
Custom file name when generating report
Hi,
I'm want to customise the name of the report that is generated. I haven't seen anything the documentation.
Does anyone know if that's possible. If so, could you let me know, please.
Thanks in advance.
Hi @saurabhkjain
What do you exactly mean, do you mean the name of the JSON file that is being generated based on each feature file? If so then this can't be changed.
Hi, Yes, that's what I meant. Is that something which can be implemented? It would be really helpful.
Thanks
Hi @saurabhkjain
It's currently not possible, can you explain what you would like to have and how this would look like. I can then see if this can be done. For now it can't. Everything is based on the name of the feature file itself and is autogenerated.
Currently the report is generated using:
onComplete: () => {
// Generate the report when it all tests are done
generate({
// Required
jsonDir: '.tmp/json/',
reportPath: '.tmp/report/',
// for more options see
});
}
Can you add an option for the JSON report like that: jsonFileName: '.tmp/json/something.json'
Because right now you get a .tmp/json/default_16666142545489763.json
@fatkobra I think this is not possible because multiple workers wrote overwrite their reports if everyone writes in the same file.
I will go ahead and close this issue. Let me know if you have further questions.