[Phpmyadmin-devel] unit testing errors
marc at infomarc.info
Mon Jul 1 16:52:32 CEST 2013
adam a écrit :
>> Dne Mon, 1 Jul 2013 22:17:44 +0800
>> adam <adamgsoc2013 at gmail.com> napsal(a):
>>> Hi Michal,
>>>> Dne Wed, 26 Jun 2013 10:05:36 -0400
>>>> Marc Delisle <marc at infomarc.info> napsal(a):
>>>>> I don't understand why I have different results when running phpunit on
>>>>> the ayushchd/unit_testing branch (5 failures) and on the master branch
>>>>> (with Michal's merge 10 minutes ago), which gives me 16 failures.
>>>> Most of the differences were most likely caused by different error
>>>> reporting level in PHP. Since 68b10df I've enabled E_ALL error
>>>> reporting in testsuite, so the number of failed tests should be same
>>>> regardless this factor.
>>>> This also leads to 30! failed tests on Travis (the CI server did see
>>>> these failures before).
>>>> As most of these tests were written by Adam, please look at them and
>>>> fix them ASAP.
>>> Look at the failures,
>>> It is from two files:
>>> In fact, Asyush worked on these two files:
>> Sorry for overlooking (I mangled file names in my head between looking
>> at Travis and Git). Indeed these were done by Ayush, so the complain
>> should have gone to him :-).
> I sent a pull request:
> This can fix most errors. thanks
I am puzzled. With my current master at
864cf690d8a7d10e37a56113d396f7c26630a9bb, phpunit 3.7.21 and PHP 5.4.10,
I still have 18 failures.
Here is the first example:
There were 18 failures:
Failed asserting that '
RENAME TABLE `pma_test`.`table1`
TO `pma_test`.`table3`;CREATE TABLE IF NOT EXISTS
`pma_test`.`TABLE 1` (`COL 1` varchar(48)) DEFAULT CHARACTER SET utf8
COLLATE utf8_general_ci;INSERT INTO `pma_test`.`TABLE 1` (`COL 1`)
VALUES ('1,dbbase,,ddd,SELECT * FROM `db_content` WHERE 1');' contains
"CREATE DATABASE IF NOT EXISTS `CSV_DB` DEFAULT CHARACTER".
More information about the Developers