Some people might think that extension development is hard, but it does not need to be. How do we make it easier? How can one ensure that the quality is kept? without running the full-scale QA engine. There are a lots of tools that one can use for free in the cloud. The primary topic for this talk will be Travis CI and the tools one can use together with it.
Video of presentation can be found here:
https://youtu.be/_hCOIxlxb8k
8. November 14th, 2015
How can this be solved?
Client-specific
Extensions
Open Source
Extensions
9. November 14th, 2015
The benefits of using Github
• “All” have an account
• Public code
• Pull requests
• Get feedback
• Issue tracking
• Wiki page
• Travis CI integration (free)
• Scrutinizer integration (free)
36. November 14th, 2015
PHPUnit (Unit)
if [[ "$COVERAGE" == "1" ]]; then
echo;
echo "Running unit tests";
.Build/bin/phpunit
--coverage-clover=unittest-coverage.clover
--colors -c $UNIT_XML Tests/Unit/
fi
37. November 14th, 2015
PHPUnit (Functional)
if [[ "$COVERAGE" == "1" ]]; then
echo;
echo "Running functional tests";
export typo3DatabaseName="typo3";
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
find 'Tests/Functional' -wholename '*Test.php' |
parallel --gnu 'echo; echo "Running functional test
suite {}"; .Build/bin/phpunit --coverage-clover={}
functionaltest-coverage.clover --colors -c
$FUNCTIONAL_XML {}'
fi