Codeception Tests with DDEV and Selenium
- Tomas Norre Mikkelsen
- Codeception , Ddev
- 28 Mar, 2020
Running behaviour driven tests like Codeception can bring some advantages to your project, and will help you detect if you break functionality on updates, changes etc.
This blog post will help you setup the basics needed for developing your own tests and running them locally with ddev.
Prerequisits
- DDEV installed on you local machine
- Project setup locally with ddev, in this case I will use a plain
phpinfo()site to lower complexity.
If you don't have a setup locally already, you can do this by follwoing the ddev get started guide, you can also close my repository on github, then you will not need to do the changes your self to check the prove of concept.
$ git clone https://github.com/tomasnorre/ddev-codeception-poc.git
$ cd ddev-codeception-poc
$ composer install
$ ddev start
<svg xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewbox="0 0 24 24" class="highlight-action crayons-icon highlight-action--fullscreen-off"><title>Exit fullscreen mode</title>
<path d="M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"></path>