Is your feature request related to a problem? Please describe.
We noticed that for Cypress based reports, the spec filename does not show up as shown on your example:
Our tests:
As shown above, the spec name does not show up for Cypress. When I inspected the generated Mochawesome JSON, I found that the file and fullFile fields are populated at the very top level, but not in the levels below, i.e.:
First, I am wondering if there's anything super obvious that I am missing here.
If there isn't, I wonder if it would make sense to add a configuration to mochawesome that allows inheriting the filename from the parent - Similar to what I did above, but when generating the JSON or HTML.
Describe alternatives you've considered
The alternative is the code I have above which works well. This is not urgent for me but I think it would be a nice addition for the Cypress community using Mochawesome. When testing 100s of specs, its extremely useful to have the spec filename in the report.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
We noticed that for Cypress based reports, the spec filename does not show up as shown on your example:![image](https://user-images.githubusercontent.com/1454683/186327975-90b91773-0447-4ce6-a645-a7718821784f.png)
Our tests:![image](https://user-images.githubusercontent.com/1454683/186328491-e23363b6-53f3-462c-9f6e-2eae4abf99c0.png)
As shown above, the spec name does not show up for Cypress. When I inspected the generated Mochawesome JSON, I found that the file and fullFile fields are populated at the very top level, but not in the levels below, i.e.:
To resolve, I've written the following workaround using recursive code in Cypress: (Not great, but works well)
Describe the solution you'd like
First, I am wondering if there's anything super obvious that I am missing here.
If there isn't, I wonder if it would make sense to add a configuration to mochawesome that allows inheriting the filename from the parent - Similar to what I did above, but when generating the JSON or HTML.
Describe alternatives you've considered
The alternative is the code I have above which works well. This is not urgent for me but I think it would be a nice addition for the Cypress community using Mochawesome. When testing 100s of specs, its extremely useful to have the spec filename in the report.
Additional context Add any other context or screenshots about the feature request here.