• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

ItemTemplate
Summary TWikiFnTestCase.pm pollutes test/unit directory
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4
SVN Range TWiki-4.1, Wed, 04 Oct 2006, build 11657
AppliesTo Engine
Component BuildScripts
Priority Low
CurrentState Closed
WaitingFor

Checkins 11863
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2006-11-01 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback