-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would like spec title available in lighthouse() callback in order to create uniquely titled logfiles #173
Comments
I was just trying to work around this today, it would be great if that feature could be implemented. For now I just append a timestamp to the report name, when you open the report you can see the page it ran on so it's now too bad for now.
|
I found a way. In
then before you call |
Thanks @bvandercar-vt, I used that I think it would be nice if we could pass the fileNameStr directly in our cy.lighthouse call that we could then use from the lightHouseReport object that is passed to the callback. Or add a second param to the callback that provides an object of additional configurations where the fileNameStr could be set that are passed to cy.lighthouse. |
Before creating a feature request, make sure another issue is not opened for the same thing.
What would you like to see in the library?
In the "generating reports" example (https://mfrachet.github.io/cypress-audit/guides/lighthouse/reports.html#generating-html-reports) the issue with this is that each time
cy.lighthouse
is ran, the log file will be overwritten. Would like a way to obtain the current spec filename (in, say, the lighthouseReport object) in order to name lighthouse report files uniquely.Why?
Reporting can only be ran once before it overwrites.
The text was updated successfully, but these errors were encountered: