diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0af4f7b8932..1493a2b20e9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,14 +50,21 @@ 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 @@ -65,7 +72,7 @@ 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/)