Re: file fixtures for unit testing

2008-10-05 Thread Brent Hargrave
Thank you all. As I'm new to testing, would someone mind expanding on Timothy's point re: using real files as test fixtures? What works better and why? Many thanks, JB On Sat, Oct 4, 2008 at 12:30 PM, Chris Hanson <[EMAIL PROTECTED]> wrote: > On Oct 4, 2008, at 3:59 AM, Colin Barrett wrote: >

Re: file fixtures for unit testing

2008-10-04 Thread Chris Hanson
On Oct 4, 2008, at 3:59 AM, Colin Barrett wrote: On Fri, Oct 3, 2008 at 10:01 PM, Brent Hargrave <[EMAIL PROTECTED]> wrote: To unit test an XML parsing method, I would like keep a dummy XML file in a project directory and import it into my FooTests class as a fixture of sorts. What is the

Re: file fixtures for unit testing

2008-10-04 Thread Timothy Reaves
On Oct 4, 2008, at 1:01 AM, Brent Hargrave wrote: To unit test an XML parsing method, I would like keep a dummy XML file in a project directory and import it into my FooTests class as a fixture of sorts. What is the right way to do this sort of thing? Put the file into the Resources fold

Re: file fixtures for unit testing

2008-10-04 Thread Colin Barrett
On Fri, Oct 3, 2008 at 10:01 PM, Brent Hargrave <[EMAIL PROTECTED]> wrote: > To unit test an XML parsing method, I would like keep a dummy XML file in a > project directory and import it into my FooTests class as a fixture of > sorts. What is the right way to do this sort of thing? Add it to the

file fixtures for unit testing

2008-10-04 Thread Brent Hargrave
To unit test an XML parsing method, I would like keep a dummy XML file in a project directory and import it into my FooTests class as a fixture of sorts. What is the right way to do this sort of thing? Many thanks! JB ___ Cocoa-dev mailing list (Cocoa