Crash Course into Continuous Testing with Sismo
The PHP community started to adopt the testing culture relatively recently. Despite there being some debates on how to achieve this, nobody can argue the importance of having your code fully covered by tests. In this article, we’re going to explore a tool that will help you in a major part of the testing culture called Continuous testing, and it’s shortly described on Wikipedia:
Continuous testing is the process of executing automated tests as part of the software delivery pipeline to obtain immediate feedback on the business risks associated with a software release candidate.
Sismo is a small component which you can easily integrate with your projects to make the process of continuous testing easier. Sismo’s main focus is to run your tests and send you status notifications. That’s all!
How to Install
The Sismo project is available on GitHub and contains a
compile script that you can run to generate a single file called
The other way is to download the file directly from the project’s website and add it to your project.
To run Sismo, you need to have a configuration file which tells it how to run your tests and where to run them.
// tests/sismo-config.php $projects = array(); $projects = new Sismo\Project('500px API (master branch)', __DIR__.'/../'); return $projects;
Now, we run
sismo.php from the commandline.
php sismo.php build --config-file='tests/config.php' # The --verbose option will tell you what the command is doing. php sismo.php build --config-file='tests/config.php' --verbose
Continue reading %Crash Course into Continuous Testing with Sismo%