Re: unit test a single case

From: Date: Wed, 17 Jan 2018 17:34:49 +0000
Subject: Re: unit test a single case
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-101605@lists.php.net to get a copy of this message
On Wed, Jan 17, 2018 at 4:50 PM, Nikita Popov <nikita.ppv@gmail.com> wrote: > 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 > To add to what Nikita said, there will also be a .sh file next to the failing test that you can use to repeat that test only. Regards, Pedro

« previous php.internals (#101605) next »