Re: Test Suite: parsing a CSV file, where to store file?

2008-07-16 Thread Marcin Domanski
From http://en.wikipedia.org/wiki/Test_fixture
"
--Examples of fixtures:

* loading a database with a specific, known set of data
* erasing a hard disk and installing a known clean operating
system installation
* copying a specific known set of files
* preparation of input data and setup/creation of fake or mock objects
"
I would also put it in fixture folder. I wouldn't put it out side of
tests/ folder (one should keep everything in one place ;)
You can also create a seperate folder in the tests dir...

--
Marcin Domanski
http://kabturek.info


On Wed, Jul 16, 2008 at 3:18 AM, aranworld <[EMAIL PROTECTED]> wrote:
>
> Thanks.  I just knew there had to be some conflicting opinions on
> this.  A webroot/files/tests directory maybe makes some sense?  tmp
> seems wierd, because the file shouldn't get deleted.
>
> -Aran
>
> On Jul 15, 2:47 pm, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
>> Fixtures are for Model tests.
>> I think a "more standard place" to put the CSV file is on temporary
>> directory (/tmp) or on a webroot/files directory.
>>
>> []'s
>>
>> On Mon, Jul 14, 2008 at 10:35 PM, Grant Cox <[EMAIL PROTECTED]> wrote:
>>
>> > I do the same, and keep the file in fixtures.  Makes sense to me :)
>>
>> > On Jul 15, 8:33 am, aranworld <[EMAIL PROTECTED]> wrote:
>> > > I need to create a test case for the parsing of a tab delimited file.
>> > > Would it make sense to put the test version of this CSV file in the
>> > > fixtures directory of my test suite?  Or is there a more standard
>> > > place to put a file like this?
>>
>> --
>> Renan Gonçalves - Software Engineer
>> Cell Phone: +55 11 8633 6018
>> MSN: [EMAIL PROTECTED]
>> São Paulo - SP/Brazil
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Test Suite: parsing a CSV file, where to store file?

2008-07-15 Thread aranworld

Thanks.  I just knew there had to be some conflicting opinions on
this.  A webroot/files/tests directory maybe makes some sense?  tmp
seems wierd, because the file shouldn't get deleted.

-Aran

On Jul 15, 2:47 pm, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
> Fixtures are for Model tests.
> I think a "more standard place" to put the CSV file is on temporary
> directory (/tmp) or on a webroot/files directory.
>
> []'s
>
> On Mon, Jul 14, 2008 at 10:35 PM, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> > I do the same, and keep the file in fixtures.  Makes sense to me :)
>
> > On Jul 15, 8:33 am, aranworld <[EMAIL PROTECTED]> wrote:
> > > I need to create a test case for the parsing of a tab delimited file.
> > > Would it make sense to put the test version of this CSV file in the
> > > fixtures directory of my test suite?  Or is there a more standard
> > > place to put a file like this?
>
> --
> Renan Gonçalves - Software Engineer
> Cell Phone: +55 11 8633 6018
> MSN: [EMAIL PROTECTED]
> São Paulo - SP/Brazil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Test Suite: parsing a CSV file, where to store file?

2008-07-15 Thread Renan Gonçalves
Fixtures are for Model tests.
I think a "more standard place" to put the CSV file is on temporary
directory (/tmp) or on a webroot/files directory.


[]'s

On Mon, Jul 14, 2008 at 10:35 PM, Grant Cox <[EMAIL PROTECTED]> wrote:

>
> I do the same, and keep the file in fixtures.  Makes sense to me :)
>
>
> On Jul 15, 8:33 am, aranworld <[EMAIL PROTECTED]> wrote:
> > I need to create a test case for the parsing of a tab delimited file.
> > Would it make sense to put the test version of this CSV file in the
> > fixtures directory of my test suite?  Or is there a more standard
> > place to put a file like this?
> >
>


-- 
Renan Gonçalves - Software Engineer
Cell Phone: +55 11 8633 6018
MSN: [EMAIL PROTECTED]
São Paulo - SP/Brazil

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Test Suite: parsing a CSV file, where to store file?

2008-07-14 Thread Grant Cox

I do the same, and keep the file in fixtures.  Makes sense to me :)


On Jul 15, 8:33 am, aranworld <[EMAIL PROTECTED]> wrote:
> I need to create a test case for the parsing of a tab delimited file.
> Would it make sense to put the test version of this CSV file in the
> fixtures directory of my test suite?  Or is there a more standard
> place to put a file like this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---