System Tests in Docker

Episode #514 by Teacher's Avatar David Kimura

Summary

Setting up system tests to run heedlessly in a docker container can be rather difficult. In this episode, we'll dockerize a Rails application and set up the application to run the system tests in the docker environment.
rails development docker tests 16:56

Chapters

  • Introduction (0:00)
  • Creating the development Dockerfile (1:22)
  • Creating the docker compose file (2:15)
  • Setting up the database.yml for the containers (4:42)
  • Setting up some tests (5:14)
  • Aliases (5:31)
  • Running the tests within the container (6:13)
  • Adding the chrome driver (7:11)
  • Updating the system test initializer (8:23)
  • Running the system tests within Docker (10:42)
  • Viewing the VNC server (10:53)
  • A strange problem and solution (11:04)
  • Final Thoughts (12:22)
  • VNC URL (13:23)
  • bin/dev (13:59)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams