Testing Your Extensions
When starting any software development project, we usually focus on our current environment (at the time of writing this book, we’re focusing on Joomla! 5 and PHP 8.2 as our environment). But as the world around us evolves, our environment keeps updating and we need to be sure that our projects work with the new requirements. We will have a new release of PHP that will be more efficient and we need to detect new issues and incompatibilities in our code. Testing our software becomes a key aspect for medium and long-term projects.
In this chapter, we will explore some options for automatically testing our Joomla! development projects. We will go from basic unit testing to more exhaustive system testing and end this chapter by introducing accessibility testing using a web browser.
After reading this chapter, you will be able to develop the tests you need for your project. This will increase the trust and confidence you have in your code.
The main...