venom icon indicating copy to clipboard operation
venom copied to clipboard

(suggestion) Customize test result filename

Open bcecchinato opened this issue 2 years ago • 1 comments

Hello !

Currently it is possible to cutomize the test report directory, but the filename is always test_results_TEST-NAME.type. Is it possible to add an option to set a templatized name instead ? This would allow us to add the timestamp in the filename, and some of the parameters, which will prevent our tests to override the repport each time it is launched.

Thanks !

bcecchinato avatar Dec 04 '23 13:12 bcecchinato

Yes, this is greatly help. When we run the test cases in parallel, unless you create an output directory for each test suite, the test results are overwritten due to the same test_results.html Here is a sample directory structure. I

image

kpassoubady avatar Jan 13 '24 02:01 kpassoubady

Why closing this issue as it's not treated or fixed ?

bcecchinato avatar Aug 13 '24 13:08 bcecchinato

Yes, adding a facility to customize the result file names is a good feature.

kpassoubady avatar Aug 13 '24 14:08 kpassoubady

if outputDir is set, It's expected to have the same filename each time venom is is triggered. If you want to save output files, you have to set another outputDir (or mv the outputDir) before running venom another time.

yesnault avatar Aug 13 '24 14:08 yesnault

But if you try to run them in parallel, it is a good feature to have a fileNameWithDDMMYY_HH24MMSS_SSS.ext

kpassoubady avatar Aug 13 '24 15:08 kpassoubady

run in parallel -> you have to use different output-dir

yesnault avatar Aug 13 '24 15:08 yesnault