Docker + Laravel + Codeception

Record when using Codeception with Laravel

Preparing for Codeception

Install with the command below

composer require codeception/codeception --dev

Create the necessary files for the test with the command below

composer exec codecept bootstrap

selenium server ready

Prepare a selenium server to use for Acception test Add the following 4 lines to docker-compose.yml

        - nginx
        - nginx:localhost

Server startup

docker-compose up -d selenium

Other preparations

Copy env file

cp .env .env.testing


actor: FunctionalTester
        - Laravel5:
            environment_file: .env.testing
        - \Helper\Functional


actor: UnitTester
        - Asserts
        - Laravel5:
            environment_file: .env.testing
        - \Helper\Unit


actor: AcceptanceTester
        - WebDriver:
            url: http://localhost/
            browser: chrome 
            host: selenium
        - \Helper\Acceptance


Recommended Posts

Docker + Laravel + Codeception
Deploy with EC2 / Docker / Laravel
Laravel + Docker Laradock usage environment construction
General error: 1812 occurs with docker + laravel
Install laravel/Dusk in docker environment (laravel6)
Create Laravel environment with Docker (docker-compose)
Build docker + laravel environment with laradock
Laravel8 ubuntu20
docker memo
kubernetes + docker
spring × docker
About Docker
Laravel development environment construction with Docker (Mac)
Docker Intellij
Docker basics
Environment construction with Docker (Ubuntu20.04) + Laravel + nginx
Docker installation
About Docker
Laravel + MySQL + phpMyadmin environment construction with Docker
Docker command
Docker memorandum
Display API specifications with Laravel + SwaggerUI + Docker
Understand Docker
Docker memorandum
Just install Laravel8 on docker in PHP8 environment
Build a Laravel / Docker environment with VSCode devcontainer
Docker x Laravel Insanely slow Docker for Windows explodes
Build a container for Docker x Laravel phpMyAdmin
Docker × Laravel HTTPS (SSL) communication in local environment