Serenity BDD reports naming

1.4k views Asked by At

I am using the Serenity BDD tool Version 1.2.1-rc.6 with JUnit 4.12 to automate some regression testing. The project is working fine so far but I want to be able to rename the generated reports.
At the moment they are called something like this: 62e91fe28f676d9f760e63756d4ba1d2.html
I want them to be named after the testcase creating them.
I have not seen anything about this in the Serenity Reference Manual nor elsewhere I could think of.
Any help would be appreciated.

1

There are 1 answers

2
John Smart On BEST ANSWER

You can set the serenity.compress.filenames property in the serenity.properties or serenity.conf file to false. This will create a filename based on the test case path, test case name and test name. Note that if your test names/paths are very long it may cause issues with (some versions of?) Windows (that doesn't support file paths longer than 260 chars).