You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jpratt2 If you set the folder_format, it would be used as a parent folder name inside which the HTML report for the current test run will be saved.
For ex., if you set folder_format to say "html_reports", then your HTML report will be saved inside test_output/html_reports/nightwatch-html-report/. But since your folder_format would be the same for each test run, it would just overwrite the previous test HTML report.
So, to retain your HTML reports, the idea here is to use different values in folder_format for each test run. This can be done by setting the folder_format to a function, like below:
Can I have an example of the use of "folder_format" that is listed here?
https://nightwatchjs.org/guide/configuration/customising-test-output.html
How can it be used to retain reports over test runs?
From documentation: "Used as a prefix for HTML report folder. This can be utilised to retain HTML report across test runs"
The text was updated successfully, but these errors were encountered: