Each of the tests based on
TWikiFnTestCase.pm
dumps two files
.log
and
.warn
in the directory where I start the tests - usually
test/unit
from a SVN checkout. This is a bit annoying since I am left without any hint what I should do about them.
Darn. The reason it does that is because the unit tests previously would write to the log and warn files in the installation-under-test - clearly not good practice.
Any suggestions for a better place to put them? Or should we just delete them?
CC
I wasn't sure whether the information in these files would be required for debugging, but it doesn't look like that.
I'd suggest to use wherever
File::Spec->tmpdir()
points to as the target directory for the log files. Or even
File::Spec->devnull()
, if it is clear that the data in the log files isn't needed for debugging. Or is it?
If not, writing to
File::Spec->devnull()
definitely is a better solution than to put logs anywhere else and then delete them in
tear_down
.
haj
Harald responded, so I changed state back to New. Anyone with the perl skills can do this, it's easy. Changed to Actioning, as the anaysis is clear.
CC
Thanks for the reminder! I've forgotten about it. --
haj