Type something to search...
Codeception Tests with DDEV and Selenium

Codeception Tests with DDEV and Selenium

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
Enter fullscreen mode
<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>

Related Posts

Fully integrate DDEV and PhpStorm – including Unit Tests with Coverage

As I’m using DDEV for most of my projects (local Docker environment) and PhpStorm as IDE, I wanted to run tests directly from PhpStorm – not only via scripts, but fully integrated with coverage and

read more
DDEV - Simplify local dev environment | Drupal-Agentur undpaul

DDEV - Simplify local dev environment | Drupal-Agentur undpaul

What the craftsmen use for their workshops is the local development environment for our development team. And we want it to be nice and simple and cosy. After all, we have enough other things to th

read more