Re: Interest in Contributing

From: Date: Fri, 03 May 2013 15:57:38 +0000
Subject: Re: Interest in Contributing
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-66853@lists.php.net to get a copy of this message
On Fri, May 3, 2013 at 5:06 AM, Trevor Carlston <trevor.carlston@gmail.com>wrote: > I would like to contribute to the PHP project. I am willing to write phpt > tests to help increase the effective code coverage. > > What git repositories will I need to clone? > For starters you should clone https://github.com/php/php-src and send the new tests via github pull requests. After a couple of decent PRs approved you can apply for a php.net account, then you should switch cloning from http://git.php.net/?p=php-src.git;a=summary directly and pushing your changes yourself. there are also some (most) pecl extensions, which still live under svn (you can see them on http://svn.php.net/viewvc/pecl/ but for checkout replace viewvc with repository) and most of those also use the php make test infrastructure. > > What directory will I place the test cases within? > in the php-src repo the extension specific tests are under ext/$extname/tests and we also have a tests directory containing some higher level/non-ext specific tests > > How do I run to verify a test case that I submit? > either via make test or executing the run-tests.php directly (the latter is for the more brave of heart you can execute a subset of our tests with the following syntax: TESTS=$directory_or_filename make test the same thing can be achieved with run-tests.php, see the help for more information. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.qa (#66853) next »