Create an E2E test environment with Docker x Cypress

A memo that explored various ways to build an environment because I wanted to run Cypress on Docker and perform E2E tests.

Constitution

e2e
├ cypress - integration - sample_spec.js
└ cypress.json
  docker-compose.yml
  Dockerfile

File

Dockerfile

FROM cypress/base:10

RUN npm install --save-dev cypress
RUN npx cypress verify

docker-compose.yml

version: '3'

services:
  e2e:
    container_name: cypress
    build: .
    command: >
      bash -c "cd cypress &&
        npx cypress run -s cypress/integration/sample_spec.js"
    volumes:
      - ./:/cypress

cypress.json

{
    "video": false
}

Run

docker-comopse build
docker-comopse up

Impressions

I tried various things, but it wasn't very good. .. .. After all it is important to see the official website properly.

Recommended Posts

Create an E2E test environment with Docker x Cypress
Build an E2E test environment with Selenium (Java)
[Workshop for beginners] Let's write an E2E test with Cloud9 + Docker Compose + Cypress!
Create a Vue3 environment with Docker!
Create SolrCloud verification environment with Docker
Create Laravel environment with Docker (docker-compose)
Create Rails 6 + MySQL environment with Docker compose
Create a MySQL environment with Docker from 0-> 1
Create Spring Boot-gradle-mysql development environment with Docker
[Docker] Create Node.js + express + webpack environment with Docker
Build an environment with Docker on AWS
[Memo] Create a CentOS 8 environment easily with Docker
[Rails] How to build an environment with Docker
[First team development ②] Build an environment with Docker
Create a Spring Boot development environment with docker
A memorandum when building an environment with Ruby3.0 x Rails6.1 x Docker x CentOS Stream
Build an environment of Ruby2.7.x + Rails6.0.x + MySQL8.0.x with Docker
[Note] Create a java environment from scratch with docker
Build Rails (API) x MySQL x Nuxt.js environment with Docker
Create Chisel development environment with Windows10 + WSL2 + VScode + Docker
Create an environment where CircleCI can be executed locally with Windows10 + WSL2 (Ubuntu) + Docker
Pytorch execution environment with Docker
[Docker] Rails 5.2 environment construction with docker
Build docker environment with WSL
React environment construction with Docker
Maybe it works! Create an image with Docker and share it!
Create an AWS IoT EduKit development environment with Ubuntu 20.04 + VirtualBox 6.1
Create Rails5 and postgresql environment with Docker and make pgadmin available
I tried to create a padrino development environment with Docker
Create an immutable class with JAVA
Rails + MySQL environment construction with Docker
Node.js environment construction with Docker Compose
Build Couchbase local environment with Docker
Let's create Ubuntu environment with vmware
Environment construction with Docker for beginners
Create RUNTEQ's environment with Windows DockerDesktop
Create an app catalog site using CLI for Microsoft 365 with Docker
Build PlantUML environment with VSCode + Docker
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
Create an excel file with poi
Create an app with Spring Boot
[Environment construction with Docker] Rails 6 & MySQL 8
"Rails 6 x MySQL 8" Docker environment construction procedure for sharing with teams
Build docker + laravel environment with laradock
Build an environment of "API development + API verification using Swagger UI" with Docker
[Rails API x Docker] Easy environment construction with shell & operation check with Flutter
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Create a java web application development environment with docker for mac part2
Create a web environment quickly using Docker
Alert slack with alert manager in Docker environment
Let's create an instance with .new yourself. .. ..
Create an infinite scroll with Infinite Scroll and kaminari
[Java] Create an executable module with Gradle
GPU environment construction with Docker [October 2020 version]
Rails environment construction with Docker (personal apocalypse)
Laravel development environment construction with Docker (Mac)
Build a PureScript development environment with Docker
[Docker] Building an environment to use Hugo
Java EE test (CDI / interceptor) with Arquillian