Skip to content

Commit

Permalink
Updated contribution info.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 25, 2014
1 parent 3491dde commit 5a1debe
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions CONTRIBUTING.md
Expand Up @@ -50,22 +50,29 @@ chance of keeping on top of things.

## Testcases and codesniffer

CakePHP tests requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html)
CakePHP tests requires [PHPUnit](http://phpunit.de/manual/current/en/installation.html)
3.5 or higher. To run the testcases locally use the following command:

./lib/Cake/Console/cake test core AllTests --stderr
phpunit --stderr tests/TestCase/

You can copy file `phpunit.xml.dist` to `phpunit.xml` and modify the database
driver settings as required to run tests for particular database.

You can also register on [Travis CI](https://travis-ci.org/) and from your
[profile](https://travis-ci.org/profile) page enable the service hook for your
cakephp fork on github for automated test builds.

To run the sniffs for CakePHP coding standards:

phpcs -p --extensions=php --standard=CakePHP ./lib/Cake
phpcs -p --extensions=php --standard=CakePHP ./src

Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer)
repository to setup the CakePHP standard. The README contains installation info
for the sniff and phpcs.

# Additional Resources

* [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html)
* [CakePHP coding standards](http://book.cakephp.org/3.0/en/contributing/cakephp-coding-conventions.html)
* [Existing issues](https://github.com/cakephp/cakephp/issues)
* [Development Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps)
* [General GitHub documentation](https://help.github.com/)
Expand Down

0 comments on commit 5a1debe

Please sign in to comment.