|
|
| Line 109: |
Line 109: |
| == To develop or use Quality controls (PHPUnit, PHPCodeSniffer, PHPCpd, PHPDepends) == | | == To develop or use Quality controls (PHPUnit, PHPCodeSniffer, PHPCpd, PHPDepends) == |
| === From Eclipse === | | === From Eclipse === |
| You can also optionnally install The PHP Tools integration (PTI) using the Eclipse plugin installer menu with this following URL:
| | The plugin to provide phpcondesniffer, or phpunit for Eclipse is now deprecated. |
|
| |
|
| http://www.phpsrc.org/eclipse/pti/
| | * PHPUnit is supported by default on a standard Eclipse installation |
|
| |
|
| If you do so, menu to launch tools tests are available in your Eclipse menu.
| | * To get PHP Codesniffer, you can create an entry "External Tools" with this setup |
|
| |
|
| Modify your Eclipse setup (Windows-Preferences-PHPTools-PHPCodeSniffer) to add a new CodeSniffer stnadard '''Dolibarr''' that is linked to path ''' dev/codesniffer'''.
| | [Image:Setup_phpcs.png] |
| | |
| Modify your Eclipse setup (Windows-Preferences-PHPTools-PHPUnit) like on screen shot (click to zoom):
| |
| | |
| [[File:Eclipse setup PHPUnit.png|200px]] | |
| | |
| If you did not install PTI, you must install and run PHPUnit and other quality tools manually from command line.
| |
|
| |
|
| === From Command Line === | | === From Command Line === |