Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

Eclipse – PHP Tool Integration (PTI) Sven Kiera, TWT Interactive GmbH.

Ähnliche Präsentationen


Präsentation zum Thema: "Eclipse – PHP Tool Integration (PTI) Sven Kiera, TWT Interactive GmbH."—  Präsentation transkript:

1 Eclipse – PHP Tool Integration (PTI) Sven Kiera, TWT Interactive GmbH

2 Sven Kiera  Web Entwickler bei TWT Interactive GmbH in Düsseldorf  PHP und Java seit 1998  PHP5 Zend Certified Engineer  Certified MySQL 5.0 Developer  Autor von PHP Tool Integration (PTI) Sven Kiera: Eclipse – PHP Tool Integration (PTI)

3 PHP Tools Sven Kiera: Eclipse – PHP Tool Integration (PTI)

4 PHP Tools  PHPUnit  PHP Depend  PHP Mess Detector  PHP_CodeSniffer  PHP Copy/Paste Detector  PHPDocumentor  Phing  … Sven Kiera: Eclipse – PHP Tool Integration (PTI)

5 „Einsatzgebiete“ von PHP Tools  Konsole  SVN Hooks  Continuous Integration Server Sven Kiera: Eclipse – PHP Tool Integration (PTI)

6 Unterstützung in Editoren / IDEs  So gut wie nicht vorhanden  Einzige Ausnahme PHPUnit  Problem: Editoren / IDEs sind nicht in PHP geschrieben  Alternative: manuelle Ausführung Sven Kiera: Eclipse – PHP Tool Integration (PTI)

7 Eclipse - PHP Tool Integration (PTI) Sven Kiera: Eclipse – PHP Tool Integration (PTI)

8 Eclipse – PHP Tool Integration (PTI)  Eclipse Plugins für Eclipse PDT 2.x und Zend Studio 7.x  Ziel: Direkte Nutzung von PHP Tools in Eclipse PDT  Aktuelle Unterstützung:  PHP_CodeSniffer  PHPDepend  PHPUnit  PHP Copy / Paste Detector  PEAR Verwaltung inkl. aktueller PEAR Bibliothek  Erweitert Eclipse DLTK External Checker um direkte Nutzung von PHP Skripten  Open Source (EPL) Sven Kiera: Eclipse – PHP Tool Integration (PTI)

9 PTI - PHP_CodeSniffer Sven Kiera: Eclipse – PHP Tool Integration (PTI)

10 PHP_CodeSniffer  PHP Tool zum ausspüren von Abweichungen vom Coding Standard  Ausführung per Konsole  Integration als SVN Hook  Integration in Continuous Integration Server Sven Kiera: Eclipse – PHP Tool Integration (PTI)

11 PTI – PHP_CodeSniffer (v1.2.4)  Manuelle Prüfung  Automatische Prüfung per Validator  Markierung von Fehler und Warnungen in Dateien  Prüfung mit mehreren Standards  Benutzung eigener Standards  Filterung von Dateien und Sniffs Sven Kiera: Eclipse – PHP Tool Integration (PTI)

12 PTI - Konfiguration Sven Kiera: Eclipse – PHP Tool Integration (PTI)

13 PTI – Manuelle Prüfung Sven Kiera: Eclipse – PHP Tool Integration (PTI)

14 PTI – Fehlermarker Sven Kiera: Eclipse – PHP Tool Integration (PTI)

15 PTI – Validator Sven Kiera: Eclipse – PHP Tool Integration (PTI)

16 PTI - PHP Depend Sven Kiera: Eclipse – PHP Tool Integration (PTI)

17 PHP Depend  PHP Tool zur Generierung von Metriken  Ausführung per Konsole  Integration in Continuous Integration Server Sven Kiera: Eclipse – PHP Tool Integration (PTI)

18 PTI – PHP Depend (v0.4.0 DEV)  Manuelle Prüfung  Automatische Prüfung per Validator  Konfiguration von Fehlerbereiche für Metriken  Markierung von Fehler und Warnungen in Dateien  Visuelle Anzeige der Metriken  Anzeige von Graphen Sven Kiera: Eclipse – PHP Tool Integration (PTI)

19 PTI – Konfiguration Sven Kiera: Eclipse – PHP Tool Integration (PTI)

20 PTI – Manuelle Ausführung Sven Kiera: Eclipse – PHP Tool Integration (PTI)

21 PTI – Visuelle Anzeige Sven Kiera: Eclipse – PHP Tool Integration (PTI)

22 PTI – Validator Sven Kiera: Eclipse – PHP Tool Integration (PTI)

23 PTI - PHPUnit Sven Kiera: Eclipse – PHP Tool Integration (PTI)

24 PHP Unit  Bekannteste xUnit Test Framework zum Testen von PHP-Skripten  Ausführung per Konsole  Integration in Continuous Integration Server  Einfache Integration in vielen Editoren und IDEs Sven Kiera: Eclipse – PHP Tool Integration (PTI)

25 PTI – PHPUnit (v0.4.0 DEV)  Einfache Erkennung von Klassen und zugehörigen Tests  Manuelle Prüfung  Automatische Ausführung per Validator  Markierung von Fehler und Warnungen in Dateien  Visuelle Anzeige der Testergebnisse  Generierung Test Klassen aus PHP Klassen  Generierung PHP Klassen aus Test Klassen Sven Kiera: Eclipse – PHP Tool Integration (PTI)

26 PTI - Konfiguration Sven Kiera: Eclipse – PHP Tool Integration (PTI)

27 PTI – Manuelle Test Ausführung Sven Kiera: Eclipse – PHP Tool Integration (PTI)

28 PTI – Visuelle Anzeige Sven Kiera: Eclipse – PHP Tool Integration (PTI)

29 PTI – Test Klasse Generierung Sven Kiera: Eclipse – PHP Tool Integration (PTI)

30 PTI – PHP Klasse Generierung Sven Kiera: Eclipse – PHP Tool Integration (PTI)

31 Ausblick Sven Kiera: Eclipse – PHP Tool Integration (PTI)

32 Ausblick  PHP_CodeSniffer  Mehrfach Konfiguration für Standards  Unterstützung für Rule Set Dateien (Wizard, Import, Export)  PHPDepend  Erweiterte Konfiguration für Metriken und Fehlerbereiche  PHPUnit  Synchronisation Test Klasse PHP Klasse  Echtzeit Anzeige  Sonstiges  Evaluierung neuer Tools: z.B. PHPMD, PHP_UML Sven Kiera: Eclipse – PHP Tool Integration (PTI)

33 Weitere Informationen  Eclipse – PHP Tool Integration (PTI)  Homepage: http://www.phpsrc.orghttp://www.phpsrc.org  SourceForge: http://sourceforge.net/projects/pti/http://sourceforge.net/projects/pti/  Eclipse Marketplace: http://marketplace.eclipse.org/content/pti-php-tool- integrationhttp://marketplace.eclipse.org/content/pti-php-tool- integration  Update Site: http://www.phpsrc.org/eclipse/pti/http://www.phpsrc.org/eclipse/pti/  Mail: sven@kiera.desven@kiera.de  PHP_CodeSniffer  Homepage: http://pear.php.net/package/PHP_CodeSniffer/http://pear.php.net/package/PHP_CodeSniffer/  Blog: http://www.squizlabs.com/php-codesnifferhttp://www.squizlabs.com/php-codesniffer  PHPDepend  Homepage: http://pdepend.orghttp://pdepend.org  PHPUnit  Homepage: http://www.phpunit.dehttp://www.phpunit.de Sven Kiera: Eclipse – PHP Tool Integration (PTI)

34 Thanks for listening! Sven Kiera: Eclipse – PHP Tool Integration (PTI)


Herunterladen ppt "Eclipse – PHP Tool Integration (PTI) Sven Kiera, TWT Interactive GmbH."

Ähnliche Präsentationen


Google-Anzeigen