Re: Regression test
| From: | Joey Smith | Date: | Mon, 21 Aug 2000 21:54:27 +0000 |
| Subject: | Re: Regression test | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-910@lists.php.net to get a copy of this message | ||
Great...is there some place in this structure where I should put
"temp" files? IE, where I can put the dbf file after writing to it but
before opening it for purposes of checking the output?
On Mon, 21 Aug 2000, jalal wrote the following to Joey Smith :
> On Mon, 14 Aug 2000 11:05:00 -0600 (MDT), Joey Smith wrote:
>
> >Great. Now my second question...
> >I want to create a test for dbase_add_record().
> >In order to test that it IS working correctly, I need to compare against
> >a .dbf created as a by-product of the function. I'm not sure how to
> >compare 2 dbf files...does the regtest framework support this?
> >
>
> [-- Little late with this response, I've been on hols, so maybe you
> answered it anyway.... --]
>
> The regtests use diff to compare files, so yes, you could compare 2 dbf
> files. If there is an error, the output may not be very intelligible...
>
> Maybe you could exercise the dbase module and output the return values
> from the functions, kind of
>
> add_record()
> echo success_or_disaster
> add_delete_records()
> echo success_or_disaster
> dump_tables_in_csv_format.
>
> That way there is a standard text output file....
>
> cheers
> -- jalal --
>
>
>
>
>
>
>