SlideShare une entreprise Scribd logo
1  sur  42
Télécharger pour lire hors ligne
Joomla Code Quality Control 
[Automated Tools] 
Shyam S. Verma 
Founder & CEO 
Ready Bytes Software Labs Pvt. Ltd.
Team JoomlaXi Develops 
Joomla Extensions 
RBSL Develop Web Apps 
and Websites
Agenda 
● Software Quality Assurance 
● Code Testing 
● Code Analysis 
● Continous Integration 
● Quick Demo of QA
Software Quality Assurance (SQA) 
● Systematic Monitoring and Evaluation of the 
software engineering processes 
● Monitoring and Evalution can be done 
automatically via tools called QA tools 
● Not a Rocket Science, but heavily depends on 
the proejct
Benefit of SQA? 
● early detection of issues 
● cleaner & consistent code 
● knowledge about the codebase 
● increase of confidence 
● enables frequent releases, refactoring
Agenda 
● Software Quality Assurance 
● Code Testing 
● Code Analysis 
● Continous Integration 
● Quick Demo of QA
Manual Testing 
● Not automated, slow and expensive 
● Complete application must be ready before it 
can be tested 
● Tests need to be repeated when the application 
changes
Automated Testing 
● Test results are - 
– automatically evaluated and 
– do not have to be interpreted by a human tester 
● Tests are repeatable 
– with deterministic results 
– without additional costs
Selenium Testing 
● Test web applications in a web browser 
● Selenium RC 
– Automated execution of Selenium tests 
– Tests can be specified in any language 
– One test can be executed on multiple 
OS/browser combinations 
– Tests can be triggered from PHPUnit
problems 
● Complex test environments 
● Dependencies between tests 
● Running the tests is slow, thus incompatible 
with the agile approach 
● It is not enough and/or does not scale
What we want 
● We want to test earlier 
● We want to be able to test an incomplete 
application 
● We want a test environment that is less 
complex 
● We want to be able to run the tests faster
Unit Tests 
● Executable specification 
● Automatic evaluation 
● Simple test environment 
● Instant feedback 
● Works as regression test 
>> Unit Tests improve the confidence in your code as they detect problems as early as possible.
>> phpunit BowlingGameTest 
PHPUnit 3.4.0 by Sebastian Bergmann. 
.FFFF 
Time: 0 seconds 
There were 4 failures: 
1) BowlingGameTest::testScoreForAllOnesIs20 
Failed asserting that <integer:0> matches expected value <integer:20>. 
/home/sb/BowlingGameTest.php:67 
2) BowlingGameTest::testScoreForOneSpareAnd3Is16 
Failed asserting that <integer:0> matches expected value <integer:16>. 
/home/sb/BowlingGameTest.php:75 
3) BowlingGameTest::testScoreForOneStrikeAnd3And4Is24 
Failed asserting that <integer:0> matches expected value <integer:24>. 
/home/sb/BowlingGameTest.php:84 
4) BowlingGameTest::testScoreForPerfectGameIs300 
Failed asserting that <integer:0> matches expected value <integer:300>. 
/home/sb/BowlingGameTest.php:90 
FAILURES! 
Tests: 5, Assertions: 5, Failures: 4.
Agenda 
● Software Quality Assurance 
● Code Testing 
● Code Analysis 
● Continous Integration 
● Quick Demo of QA
Static Analysis
phploc 
● Text-based metric for code size 
● Various definitions 
– Lines of Code (LOC) 
– Comment Lines of Code (CLOC) 
– Non-Comment Lines of Code (NCLOC) 
– Executable Lines of Code (ELOC) 
● Ratios can be interesting 
– CLOC / (E)LOC
Running phploc on Joomla 1.6.1 
Directories: 725 
Files: 1625 
Lines of Code (LOC): 251967 
Cyclomatic Complexity / Lines of Code: 0.12 
Comment Lines of Code (CLOC): 88959 
Non­Comment 
Lines of Code (NCLOC): 163008 
Namespaces: 0 
Interfaces: 0 
Classes: 1136 
Abstract: 81 (7.13%) 
Concrete: 1055 (92.87%) 
Average Class Length (NCLOC): 126 
Methods: 6494 
Scope: 
Non­Static: 
5710 (87.93%) 
Static: 784 (12.07%) 
Visibility: 
Public: 5113 (78.73%) 
Non­Public: 
1381 (21.27%) 
Average Method Length (NCLOC): 22 
Cyclomatic Complexity / Number of Methods: 3.44 
Anonymous Functions: 10 
Functions: 112 
Constants: 225 
Global constants: 218 
Class constants: 7
Php code sniffer 
● PHP_CodeSniffer 
– sniffs for coding standard violations 
– ensures code is clean and consistent 
– using standard and custom coding standards 
● Installation 
– pear install PHP_CodeSniffer
phpcs on libraries/joomla/application 
shyam@ssv­lptp­lnx:/ 
var/www/j161$ phpcs ­s 
­­standard= 
ZEND ­­report= 
summary 
­­sniffs=" 
Zend.Files.LineLength.LineTooLong" ­­extensions= 
php libraries/joomla/application/ 
PHP CODE SNIFFER REPORT SUMMARY 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­FILE 
ERRORS WARNINGS 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­/ 
var/www/j161/libraries/joomla/application/application.php 4 35 
/var/www/j161/libraries/joomla/application/categories.php 2 22 
...... 
/var/www/j161/libraries/joomla/application/component/view.php 0 15 
/var/www/j161/libraries/joomla/application/pathway.php 0 2 
/var/www/j161/libraries/joomla/application/router.php 0 2 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­A 
TOTAL OF 43 ERROR(S) AND 222 WARNING(S) WERE FOUND IN 17 FILE(S) 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­PHP 
CODE SNIFFER VIOLATION SOURCE SUMMARY 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­SOURCE 
COUNT 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­Zend. 
Files.LineLength.LineTooLong 222 
Zend.Files.LineLength.MaxLengthExceeded 43 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­A 
TOTAL OF 265 SNIFF VIOLATION(S) WERE FOUND IN 2 SOURCE(S) 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
phpcpd 
● PHP Copy/Paste Detector 
– detects code duplication 
● Installation 
– pear channel-discover pear.phpunit.de 
– pear channel-discover components.ez.no 
– pear install --alldeps phpunit/phpcpd
phpcpd on libraries/joomla (1.6.1) Found 10 exact clones with 216 duplicated lines in 13 files: 
­libraries/ 
joomla/html/html/category.php:46­58 
libraries/joomla/html/html/category.php:98­110 
­libraries/ 
joomla/client/ftp.php:1186­1192 
libraries/joomla/client/ftp.php:1215­1221 
­libraries/ 
joomla/base/object.php:78­120 
libraries/joomla/error/exception.php:182­224 
­libraries/ 
joomla/database/table/extension.php:30­44 
libraries/joomla/database/table/update.php:32­46 
­libraries/ 
joomla/database/database/mysql.php:221­236 
libraries/joomla/database/database/mysqli.php:245­260 
...... 
­libraries/ 
joomla/form/fields/componentlayout.php:161­173 
libraries/joomla/form/fields/modulelayout.php:138­150 
­libraries/ 
joomla/installer/adapters/component.php:263­275 
libraries/joomla/installer/adapters/component.php:688­700 
­libraries/ 
joomla/installer/adapters/template.php:107­114 
libraries/joomla/installer/adapters/plugin.php:165­172 
0.30% duplicated lines out of 70925 total lines of code.
php mess detector 
● pDepend & PHPMD 
– detects code mess 
● Installation 
– pear channel-discover pear.pdepend.org 
– pear install pdepend/PHP_Depend 
– pear channel-discover pear.phpmd.org 
– pear install phpmd/PHP_PMD
phpmd on router.php 
$>> phpmd libraries/joomla/application/router.php text unusedcode 
/var/www/j161/libraries/joomla/application/router.php:247 Avoid unused parameters such as '$uri'. 
/var/www/j161/libraries/joomla/application/router.php:255 Avoid unused parameters such as '$uri'. 
/var/www/j161/libraries/joomla/application/router.php:263 Avoid unused parameters such as '$uri'. 
/var/www/j161/libraries/joomla/application/router.php:270 Avoid unused parameters such as '$uri'. 
$>> phpmd libraries/joomla/application/router.php text codesize 
/var/www/j161/libraries/joomla/application/router.php:26 This class has too many methods, consider 
refactoring it. 
$>> phpmd libraries/joomla/application/router.php text naming 
$>>
pdepend 
pdepend ­­overview­pyramid=./ 
pdepend.svg libraries/joomla/
php documentation generator 
● PHPDocumentator 
– creates automated API documentation based on 
inline code blocks 
● Installation 
– pear install PhpDocumentor
Dynamic Analysis
Code Coverage 
Which statements, branches, and paths are 
executed when the tests run? 
● Statement Coverage 
● Branch Coverage 
● Path Coverage 
100% Code Coverage is a required, but not a 
sufficient criteria for test completeness
>> phpunit ­­coverage­html 
/tmp/report BankAccountTest 
PHPUnit 3.4.0 by Sebastian Bergmann. 
..... 
Time: 0 seconds 
OK (5 tests, 5 assertions) 
Generating code coverage report, this may take a moment.
Profiling 
● Xdebug's built-in profiler 
● Finds bottlenecks in your script 
● Output can be visualized by external tools such 
as KCacheGrind or WinCacheGrind.
Agenda 
● Software Quality Assurance 
● Code Testing 
● Code Analysis 
● Continous Integration (Automation) 
● Quick Demo of QA
Automation
phing 
● automated build tool 
– like Apache Ant 
– integrates well with other PHP tools 
● Installation 
– pear channel-discover pear.phing.info 
– pear install phing/phing
Sample build file 
<?xml version="1.0" ?> 
<project name="builder" basedir="." default="build" description="Build PayPlans Kit."> 
<target name="build" depends="config"> 
<phingcall target="export_from_wc" /> 
<phing phingfile="${project.shortform.small}.xml" inheritAll="true" target="build" /> 
<zip destfile="${dir.packages}/${project.shortform}­${ 
file.version}.$ 
{svn.lastrevision}.zip" 
basedir="${dir.tmp}" /> 
</target> 
<target name="config" description="Load configuration file"> 
<php expression="(PHP_OS == 'WINNT') ? '_win' :'_unix'" returnProperty="IF_OS"/> 
<property file="global${IF_OS}.prop" override="false" /> 
<property file="build${IF_OS}.prop" override="false" /> 
<svnlastrevision workingcopy="${dir.root}" propertyname="svn.lastrevision" /> 
</target> 
</project>
Cruise control 
Framework for a continuous build process 
● Includes, but is not limited to, plugins for email 
notification, Apache Ant, Phing, and various 
source control tools 
● A web interface is provided to view the details 
of the current and previous builds
Screenshots
phpUnderControl 
● Customization of CruiseControl that caters to 
the needs of PHP projects 
– PHPUnit 
– PHPDocumentor 
– PHP_CodeSniffer 
– PHP_Depend 
– phpmd 
– phpcpd
Screenshot
Agenda 
● Software Quality Assurance 
● Code Testing 
● Code Analysis 
● Continous Integration 
● Quick Demo of QA
Credits 
● http://www.slideshare.net/sebastian_bergmann 
● http://www.slideshare.net/DragonBe 
● http://www.slideshare.net/spriebsch
Thanks... 
Find us at : 
● http://twitter.com/joomlaxi 
● http://facebook.com/joomlaxi 
● shyam@readybytes.in

Contenu connexe

Tendances

Code Review with Sonar
Code Review with SonarCode Review with Sonar
Code Review with SonarMax Kleiner
 
Refactoring Legacy Code
Refactoring Legacy CodeRefactoring Legacy Code
Refactoring Legacy CodeAdam Culp
 
Distributed and Scalable JMeter
Distributed and Scalable JMeterDistributed and Scalable JMeter
Distributed and Scalable JMeterHepsiburada
 
Code Review
Code ReviewCode Review
Code ReviewRavi Raj
 
Model-based Testing: Taking BDD/ATDD to the Next Level
Model-based Testing: Taking BDD/ATDD to the Next LevelModel-based Testing: Taking BDD/ATDD to the Next Level
Model-based Testing: Taking BDD/ATDD to the Next LevelBob Binder
 
The why and how of moving to php 8
The why and how of moving to php 8The why and how of moving to php 8
The why and how of moving to php 8Wim Godden
 
PVS-Studio and static code analysis technique
PVS-Studio and static code analysis techniquePVS-Studio and static code analysis technique
PVS-Studio and static code analysis techniqueAndrey Karpov
 
The why and how of moving to php 7
The why and how of moving to php 7The why and how of moving to php 7
The why and how of moving to php 7Wim Godden
 
Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Alexandre (Shura) Iline
 
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자Taeyeop Kim
 
Improving Code Quality Through Effective Review Process
Improving Code Quality Through Effective  Review ProcessImproving Code Quality Through Effective  Review Process
Improving Code Quality Through Effective Review ProcessDr. Syed Hassan Amin
 
ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot FrameworkPekka Klärck
 
Code-Review-Principles-Process-and-Tools (1)
Code-Review-Principles-Process-and-Tools (1)Code-Review-Principles-Process-and-Tools (1)
Code-Review-Principles-Process-and-Tools (1)Aditya Bhuyan
 
Robot Framework :: Demo login application
Robot Framework :: Demo login applicationRobot Framework :: Demo login application
Robot Framework :: Demo login applicationSomkiat Puisungnoen
 
Top 10 static code analysis tool
Top 10 static code analysis toolTop 10 static code analysis tool
Top 10 static code analysis toolscmGalaxy Inc
 
Property-based testing an open-source compiler, pflua (FOSDEM 2015)
Property-based testing an open-source compiler, pflua (FOSDEM 2015)Property-based testing an open-source compiler, pflua (FOSDEM 2015)
Property-based testing an open-source compiler, pflua (FOSDEM 2015)Igalia
 
Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Rapita Systems Ltd
 

Tendances (20)

Hidden Dragons of CGO
Hidden Dragons of CGOHidden Dragons of CGO
Hidden Dragons of CGO
 
Code Review with Sonar
Code Review with SonarCode Review with Sonar
Code Review with Sonar
 
Refactoring Legacy Code
Refactoring Legacy CodeRefactoring Legacy Code
Refactoring Legacy Code
 
Distributed and Scalable JMeter
Distributed and Scalable JMeterDistributed and Scalable JMeter
Distributed and Scalable JMeter
 
Code Review
Code ReviewCode Review
Code Review
 
Model-based Testing: Taking BDD/ATDD to the Next Level
Model-based Testing: Taking BDD/ATDD to the Next LevelModel-based Testing: Taking BDD/ATDD to the Next Level
Model-based Testing: Taking BDD/ATDD to the Next Level
 
The why and how of moving to php 8
The why and how of moving to php 8The why and how of moving to php 8
The why and how of moving to php 8
 
PVS-Studio and static code analysis technique
PVS-Studio and static code analysis techniquePVS-Studio and static code analysis technique
PVS-Studio and static code analysis technique
 
The why and how of moving to php 7
The why and how of moving to php 7The why and how of moving to php 7
The why and how of moving to php 7
 
Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.
 
Parasoft fda software compliance part2
Parasoft fda software compliance   part2Parasoft fda software compliance   part2
Parasoft fda software compliance part2
 
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
IoT 개발자를 위한 Embedded C에서 Test Coverage를 추출해보자
 
Improving Code Quality Through Effective Review Process
Improving Code Quality Through Effective  Review ProcessImproving Code Quality Through Effective  Review Process
Improving Code Quality Through Effective Review Process
 
ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
 
Code-Review-Principles-Process-and-Tools (1)
Code-Review-Principles-Process-and-Tools (1)Code-Review-Principles-Process-and-Tools (1)
Code-Review-Principles-Process-and-Tools (1)
 
Robot Framework :: Demo login application
Robot Framework :: Demo login applicationRobot Framework :: Demo login application
Robot Framework :: Demo login application
 
Top 10 static code analysis tool
Top 10 static code analysis toolTop 10 static code analysis tool
Top 10 static code analysis tool
 
Property-based testing an open-source compiler, pflua (FOSDEM 2015)
Property-based testing an open-source compiler, pflua (FOSDEM 2015)Property-based testing an open-source compiler, pflua (FOSDEM 2015)
Property-based testing an open-source compiler, pflua (FOSDEM 2015)
 
Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage" Presentation slides: "How to get 100% code coverage"
Presentation slides: "How to get 100% code coverage"
 
JavaCro'14 - Test Automation using RobotFramework Libraries – Stojan Peshov
JavaCro'14 - Test Automation using RobotFramework Libraries – Stojan PeshovJavaCro'14 - Test Automation using RobotFramework Libraries – Stojan Peshov
JavaCro'14 - Test Automation using RobotFramework Libraries – Stojan Peshov
 

Similaire à Joomla Code Quality Control and Automation Testing

Codeception: introduction to php testing
Codeception: introduction to php testingCodeception: introduction to php testing
Codeception: introduction to php testingEngineor
 
Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2Andrew Yatsenko
 
Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)Engineor
 
DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017
DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017
DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017AgileNZ Conference
 
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore - Continuous Auditing with Compliance as CodeDevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore - Continuous Auditing with Compliance as CodeMatt Ray
 
Improving code quality using CI
Improving code quality using CIImproving code quality using CI
Improving code quality using CIMartin de Keijzer
 
Code quality par Simone Civetta
Code quality par Simone CivettaCode quality par Simone Civetta
Code quality par Simone CivettaCocoaHeads France
 
Security in CI/CD Pipelines: Tips for DevOps Engineers
Security in CI/CD Pipelines: Tips for DevOps EngineersSecurity in CI/CD Pipelines: Tips for DevOps Engineers
Security in CI/CD Pipelines: Tips for DevOps EngineersDevOps.com
 
Lighning Talk: PHP build process
Lighning Talk: PHP build processLighning Talk: PHP build process
Lighning Talk: PHP build processBryan Agee
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using  Data Flow Analysis Parasoft .TEST, Write better C# Code Using  Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis Engineering Software Lab
 
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020OdessaJS Conf
 
Continuous Integration at Mollie
Continuous Integration at MollieContinuous Integration at Mollie
Continuous Integration at Molliewillemstuursma
 
The working architecture of NodeJs applications
The working architecture of NodeJs applicationsThe working architecture of NodeJs applications
The working architecture of NodeJs applicationsViktor Turskyi
 
DevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & AnsibleDevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & AnsibleArnaud LEMAIRE
 
Continuous Integration In Php
Continuous Integration In PhpContinuous Integration In Php
Continuous Integration In PhpWilco Jansen
 
AdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech Update
AdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech UpdateAdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech Update
AdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech Updatejamieayre
 
Anatomy of a Build Pipeline
Anatomy of a Build PipelineAnatomy of a Build Pipeline
Anatomy of a Build PipelineSamuel Brown
 
[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...
[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...
[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...CODE BLUE
 

Similaire à Joomla Code Quality Control and Automation Testing (20)

Codeception: introduction to php testing
Codeception: introduction to php testingCodeception: introduction to php testing
Codeception: introduction to php testing
 
Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2
 
Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)Codeception: introduction to php testing (v2 - Aberdeen php)
Codeception: introduction to php testing (v2 - Aberdeen php)
 
DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017
DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017
DevSec Delight with Compliance as Code - Matt Ray - AgileNZ 2017
 
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore - Continuous Auditing with Compliance as CodeDevOpsDays Singapore - Continuous Auditing with Compliance as Code
DevOpsDays Singapore - Continuous Auditing with Compliance as Code
 
Improving code quality using CI
Improving code quality using CIImproving code quality using CI
Improving code quality using CI
 
Tool up your lamp stack
Tool up your lamp stackTool up your lamp stack
Tool up your lamp stack
 
Code quality par Simone Civetta
Code quality par Simone CivettaCode quality par Simone Civetta
Code quality par Simone Civetta
 
Security in CI/CD Pipelines: Tips for DevOps Engineers
Security in CI/CD Pipelines: Tips for DevOps EngineersSecurity in CI/CD Pipelines: Tips for DevOps Engineers
Security in CI/CD Pipelines: Tips for DevOps Engineers
 
Lighning Talk: PHP build process
Lighning Talk: PHP build processLighning Talk: PHP build process
Lighning Talk: PHP build process
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using  Data Flow Analysis Parasoft .TEST, Write better C# Code Using  Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
 
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
'Effective node.js development' by Viktor Turskyi at OdessaJS'2020
 
Continuous Integration at Mollie
Continuous Integration at MollieContinuous Integration at Mollie
Continuous Integration at Mollie
 
The working architecture of NodeJs applications
The working architecture of NodeJs applicationsThe working architecture of NodeJs applications
The working architecture of NodeJs applications
 
DevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & AnsibleDevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & Ansible
 
Continuous Integration In Php
Continuous Integration In PhpContinuous Integration In Php
Continuous Integration In Php
 
AdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech Update
AdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech UpdateAdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech Update
AdaCore Paris Tech Day 2016: Jose Ruiz - QGen Tech Update
 
Anatomy of a Build Pipeline
Anatomy of a Build PipelineAnatomy of a Build Pipeline
Anatomy of a Build Pipeline
 
Beginners Node.js
Beginners Node.jsBeginners Node.js
Beginners Node.js
 
[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...
[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...
[CB16] COFI break – Breaking exploits with Processor trace and Practical cont...
 

Dernier

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Joomla Code Quality Control and Automation Testing

  • 1. Joomla Code Quality Control [Automated Tools] Shyam S. Verma Founder & CEO Ready Bytes Software Labs Pvt. Ltd.
  • 2. Team JoomlaXi Develops Joomla Extensions RBSL Develop Web Apps and Websites
  • 3. Agenda ● Software Quality Assurance ● Code Testing ● Code Analysis ● Continous Integration ● Quick Demo of QA
  • 4. Software Quality Assurance (SQA) ● Systematic Monitoring and Evaluation of the software engineering processes ● Monitoring and Evalution can be done automatically via tools called QA tools ● Not a Rocket Science, but heavily depends on the proejct
  • 5. Benefit of SQA? ● early detection of issues ● cleaner & consistent code ● knowledge about the codebase ● increase of confidence ● enables frequent releases, refactoring
  • 6. Agenda ● Software Quality Assurance ● Code Testing ● Code Analysis ● Continous Integration ● Quick Demo of QA
  • 7. Manual Testing ● Not automated, slow and expensive ● Complete application must be ready before it can be tested ● Tests need to be repeated when the application changes
  • 8. Automated Testing ● Test results are - – automatically evaluated and – do not have to be interpreted by a human tester ● Tests are repeatable – with deterministic results – without additional costs
  • 9. Selenium Testing ● Test web applications in a web browser ● Selenium RC – Automated execution of Selenium tests – Tests can be specified in any language – One test can be executed on multiple OS/browser combinations – Tests can be triggered from PHPUnit
  • 10.
  • 11. problems ● Complex test environments ● Dependencies between tests ● Running the tests is slow, thus incompatible with the agile approach ● It is not enough and/or does not scale
  • 12. What we want ● We want to test earlier ● We want to be able to test an incomplete application ● We want a test environment that is less complex ● We want to be able to run the tests faster
  • 13. Unit Tests ● Executable specification ● Automatic evaluation ● Simple test environment ● Instant feedback ● Works as regression test >> Unit Tests improve the confidence in your code as they detect problems as early as possible.
  • 14. >> phpunit BowlingGameTest PHPUnit 3.4.0 by Sebastian Bergmann. .FFFF Time: 0 seconds There were 4 failures: 1) BowlingGameTest::testScoreForAllOnesIs20 Failed asserting that <integer:0> matches expected value <integer:20>. /home/sb/BowlingGameTest.php:67 2) BowlingGameTest::testScoreForOneSpareAnd3Is16 Failed asserting that <integer:0> matches expected value <integer:16>. /home/sb/BowlingGameTest.php:75 3) BowlingGameTest::testScoreForOneStrikeAnd3And4Is24 Failed asserting that <integer:0> matches expected value <integer:24>. /home/sb/BowlingGameTest.php:84 4) BowlingGameTest::testScoreForPerfectGameIs300 Failed asserting that <integer:0> matches expected value <integer:300>. /home/sb/BowlingGameTest.php:90 FAILURES! Tests: 5, Assertions: 5, Failures: 4.
  • 15. Agenda ● Software Quality Assurance ● Code Testing ● Code Analysis ● Continous Integration ● Quick Demo of QA
  • 17. phploc ● Text-based metric for code size ● Various definitions – Lines of Code (LOC) – Comment Lines of Code (CLOC) – Non-Comment Lines of Code (NCLOC) – Executable Lines of Code (ELOC) ● Ratios can be interesting – CLOC / (E)LOC
  • 18. Running phploc on Joomla 1.6.1 Directories: 725 Files: 1625 Lines of Code (LOC): 251967 Cyclomatic Complexity / Lines of Code: 0.12 Comment Lines of Code (CLOC): 88959 Non­Comment Lines of Code (NCLOC): 163008 Namespaces: 0 Interfaces: 0 Classes: 1136 Abstract: 81 (7.13%) Concrete: 1055 (92.87%) Average Class Length (NCLOC): 126 Methods: 6494 Scope: Non­Static: 5710 (87.93%) Static: 784 (12.07%) Visibility: Public: 5113 (78.73%) Non­Public: 1381 (21.27%) Average Method Length (NCLOC): 22 Cyclomatic Complexity / Number of Methods: 3.44 Anonymous Functions: 10 Functions: 112 Constants: 225 Global constants: 218 Class constants: 7
  • 19. Php code sniffer ● PHP_CodeSniffer – sniffs for coding standard violations – ensures code is clean and consistent – using standard and custom coding standards ● Installation – pear install PHP_CodeSniffer
  • 20. phpcs on libraries/joomla/application shyam@ssv­lptp­lnx:/ var/www/j161$ phpcs ­s ­­standard= ZEND ­­report= summary ­­sniffs=" Zend.Files.LineLength.LineTooLong" ­­extensions= php libraries/joomla/application/ PHP CODE SNIFFER REPORT SUMMARY ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­FILE ERRORS WARNINGS ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­/ var/www/j161/libraries/joomla/application/application.php 4 35 /var/www/j161/libraries/joomla/application/categories.php 2 22 ...... /var/www/j161/libraries/joomla/application/component/view.php 0 15 /var/www/j161/libraries/joomla/application/pathway.php 0 2 /var/www/j161/libraries/joomla/application/router.php 0 2 ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­A TOTAL OF 43 ERROR(S) AND 222 WARNING(S) WERE FOUND IN 17 FILE(S) ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­PHP CODE SNIFFER VIOLATION SOURCE SUMMARY ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­SOURCE COUNT ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­Zend. Files.LineLength.LineTooLong 222 Zend.Files.LineLength.MaxLengthExceeded 43 ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­A TOTAL OF 265 SNIFF VIOLATION(S) WERE FOUND IN 2 SOURCE(S) ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
  • 21. phpcpd ● PHP Copy/Paste Detector – detects code duplication ● Installation – pear channel-discover pear.phpunit.de – pear channel-discover components.ez.no – pear install --alldeps phpunit/phpcpd
  • 22. phpcpd on libraries/joomla (1.6.1) Found 10 exact clones with 216 duplicated lines in 13 files: ­libraries/ joomla/html/html/category.php:46­58 libraries/joomla/html/html/category.php:98­110 ­libraries/ joomla/client/ftp.php:1186­1192 libraries/joomla/client/ftp.php:1215­1221 ­libraries/ joomla/base/object.php:78­120 libraries/joomla/error/exception.php:182­224 ­libraries/ joomla/database/table/extension.php:30­44 libraries/joomla/database/table/update.php:32­46 ­libraries/ joomla/database/database/mysql.php:221­236 libraries/joomla/database/database/mysqli.php:245­260 ...... ­libraries/ joomla/form/fields/componentlayout.php:161­173 libraries/joomla/form/fields/modulelayout.php:138­150 ­libraries/ joomla/installer/adapters/component.php:263­275 libraries/joomla/installer/adapters/component.php:688­700 ­libraries/ joomla/installer/adapters/template.php:107­114 libraries/joomla/installer/adapters/plugin.php:165­172 0.30% duplicated lines out of 70925 total lines of code.
  • 23. php mess detector ● pDepend & PHPMD – detects code mess ● Installation – pear channel-discover pear.pdepend.org – pear install pdepend/PHP_Depend – pear channel-discover pear.phpmd.org – pear install phpmd/PHP_PMD
  • 24. phpmd on router.php $>> phpmd libraries/joomla/application/router.php text unusedcode /var/www/j161/libraries/joomla/application/router.php:247 Avoid unused parameters such as '$uri'. /var/www/j161/libraries/joomla/application/router.php:255 Avoid unused parameters such as '$uri'. /var/www/j161/libraries/joomla/application/router.php:263 Avoid unused parameters such as '$uri'. /var/www/j161/libraries/joomla/application/router.php:270 Avoid unused parameters such as '$uri'. $>> phpmd libraries/joomla/application/router.php text codesize /var/www/j161/libraries/joomla/application/router.php:26 This class has too many methods, consider refactoring it. $>> phpmd libraries/joomla/application/router.php text naming $>>
  • 25. pdepend pdepend ­­overview­pyramid=./ pdepend.svg libraries/joomla/
  • 26. php documentation generator ● PHPDocumentator – creates automated API documentation based on inline code blocks ● Installation – pear install PhpDocumentor
  • 28. Code Coverage Which statements, branches, and paths are executed when the tests run? ● Statement Coverage ● Branch Coverage ● Path Coverage 100% Code Coverage is a required, but not a sufficient criteria for test completeness
  • 29. >> phpunit ­­coverage­html /tmp/report BankAccountTest PHPUnit 3.4.0 by Sebastian Bergmann. ..... Time: 0 seconds OK (5 tests, 5 assertions) Generating code coverage report, this may take a moment.
  • 30. Profiling ● Xdebug's built-in profiler ● Finds bottlenecks in your script ● Output can be visualized by external tools such as KCacheGrind or WinCacheGrind.
  • 31.
  • 32. Agenda ● Software Quality Assurance ● Code Testing ● Code Analysis ● Continous Integration (Automation) ● Quick Demo of QA
  • 34. phing ● automated build tool – like Apache Ant – integrates well with other PHP tools ● Installation – pear channel-discover pear.phing.info – pear install phing/phing
  • 35. Sample build file <?xml version="1.0" ?> <project name="builder" basedir="." default="build" description="Build PayPlans Kit."> <target name="build" depends="config"> <phingcall target="export_from_wc" /> <phing phingfile="${project.shortform.small}.xml" inheritAll="true" target="build" /> <zip destfile="${dir.packages}/${project.shortform}­${ file.version}.$ {svn.lastrevision}.zip" basedir="${dir.tmp}" /> </target> <target name="config" description="Load configuration file"> <php expression="(PHP_OS == 'WINNT') ? '_win' :'_unix'" returnProperty="IF_OS"/> <property file="global${IF_OS}.prop" override="false" /> <property file="build${IF_OS}.prop" override="false" /> <svnlastrevision workingcopy="${dir.root}" propertyname="svn.lastrevision" /> </target> </project>
  • 36. Cruise control Framework for a continuous build process ● Includes, but is not limited to, plugins for email notification, Apache Ant, Phing, and various source control tools ● A web interface is provided to view the details of the current and previous builds
  • 38. phpUnderControl ● Customization of CruiseControl that caters to the needs of PHP projects – PHPUnit – PHPDocumentor – PHP_CodeSniffer – PHP_Depend – phpmd – phpcpd
  • 40. Agenda ● Software Quality Assurance ● Code Testing ● Code Analysis ● Continous Integration ● Quick Demo of QA
  • 41. Credits ● http://www.slideshare.net/sebastian_bergmann ● http://www.slideshare.net/DragonBe ● http://www.slideshare.net/spriebsch
  • 42. Thanks... Find us at : ● http://twitter.com/joomlaxi ● http://facebook.com/joomlaxi ● shyam@readybytes.in