RE: DBX tests failing
| From: | Derick Rethans | Date: | Mon, 07 Oct 2002 08:39:26 +0000 |
| Subject: | RE: DBX tests failing | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-5986@lists.php.net to get a copy of this message | ||
On Mon, 7 Oct 2002, Marc Boeren wrote:
>
> Hi,
>
> >> Or even easier, I create an include-file that just says $skip_test = true
> >> that a tester can set to false
>
> > With all due respect that's too much of a hassle. Everybody
> > (including the "stupid" users) must be able to run "make test"
> > without having to set variables, includes or anything and still
> > get reliable test results.
>
> Well, the "stupid" users would not test dbx anyway, and they would just
> 'make test' and it would work.
> Only people that create a test-setup for dbx (not many, I think) would have
> to change the include-file. They should change that anyway so the settings
> are correct for their specific test-database.
>
> There is already an include-file (dbx_test.p) to specify database-settings,
> and the default setting here is
> $connection = DBX_MYSQL;
> If I change that to $connection = NULL; and a remark to set it to the proper
> database for testing purposes, then I can easily change the scripts to check
> for $connection and skip if it is NULL.
Okay, makes sense. Can you please do this?
>
> > I think it would make sense to skip if dbx_connect() fails in
> > this case.
>
> I disagree for the simple reason that dbx_connect is one of the functions
> tested, and so should not be used to determine if the test is to be skipped.
Of course.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions http://www.jdimedia.nl/
---------------------------------------------------------------------------