smash-transport / smash-vhlle-hybrid

Event-by-event hybrid model for the description of relativistic heavy-ion collisions
https://smash-transport.github.io/smash-vhlle-hybrid/
GNU General Public License v3.0
3 stars 0 forks source link

Possible testing framework improvements #36

Open AxelKrypton opened 4 months ago

AxelKrypton commented 4 months ago

To keep the test log file "clean" we got the habit to suppress standard error of function calls which are expected to fail.

However, by now, I found myself many times uncommenting the suppression to see what that output was and, reviewing PR, I realised that some problems which were not noticed could have been if that output was not suppressed.

It might be cool and convenient to get rid of all these failures. Clearly, this would then clutter the log file so much, that a test failure would not be visible any more. One could do the following then:


Another nice improvement would be to make the runner call the Clean_Tests_Environment_For_Following_Test__* only if the test passed. At the moment we kind of do not implement these functions so much because we want files in case of failure, but then we leave them also for those tests which pass. Another alternative approach would be to make the runner remove the test dedicated folder if the test pass (of course, unless the user gave -k). This makes again the Clean* functions rarely needed, which is actually good IMO as it is less work for the developer. I'd go this way.