Re: unit test a single case
| From: | Nikita Popov | Date: | Wed, 17 Jan 2018 16:50:58 +0000 |
| Subject: | Re: unit test a single case | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101604@lists.php.net to get a copy of this message | ||
On Wed, Jan 17, 2018 at 5:40 PM, Sam Ding <samding@ca.ibm.com> wrote:
>
> Hi PHP developers,
>
> I am new and try to porting php v7.2.1 on IBM s390x, after building and
> run unit test "make test", there are
> some failed cases. Is there any way I can run a single case and get the
> result?
> Further how to debug a php unit case code?
>
You can use one of
make test TESTS=dir
sapi/cli/php run-tests.php -P dir
to run tests in a certain directory, or a specific test file.
The first step for debugging would be to look at the .out or .diff file for
the failing .phpt. There will also be a .php file, which can be used to run
the test file directly.
Nikita