Re: testing -- what to do for testing code with behaviour dependant upon which files exist?
- From: Jeremy Bowers <jerf@xxxxxxxx>
- Date: Sat, 02 Apr 2005 19:28:10 -0500
On Sat, 02 Apr 2005 15:30:13 -0500, Brian van den Broek wrote:
> So, how does one handle such cases with tests?
When I had a similar situation, I created a directory for testing that was
in a known state, and tested on that. If you can test based on a relative
directory, that should work OK.
Non-existant paths shouldn't be too hard to come up with; hardcoding a
constant relative dir of
"THISDIRECTORYCANTPOSSIBLYEXISTANDIFITDOESYOURENUTS" ought to do OK.
.
- References:
- testing -- what to do for testing code with behaviour dependant upon which files exist?
- From: Brian van den Broek
- testing -- what to do for testing code with behaviour dependant upon which files exist?
- Prev by Date: Re: Docorator Disected
- Next by Date: Re: (win32) speedfan api control
- Previous by thread: Re: testing -- what to do for testing code with behaviour dependant upon which files exist?
- Next by thread: Re: testing -- what to do for testing code with behaviour dependant upon which files exist?
- Index(es):
Relevant Pages
|