From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Viewing our test harness in Docker Compose
From the course: DevOps Foundations: Your First Project
Viewing our test harness in Docker Compose
Now that we have a skeleton for our tests, we're ready to run our tests within Docker Compose. As always, before going any further, make sure that you're in the Explore California website working directory that we've been using or run "cd ~/explore- california-website" to go back into it. I've created the Compose service and an updated version of the Dockerfile we created earlier to save us some time. While we already have the updated Compose service in our docker-compose.yaml, we'll need to obtain the updated Dockerfile that goes along with it. This file is in the "05_03_before" folder within your exercise file bundle. Like we did before, let's run "cp", then the path to your exercise files bundle, or "~/Downloads/exercise_files/" in my case. Then, "05_03_before/Dockerfile" and then copy it right into our Explore California website directory. Now, let's make sure that we have it. You should see Dockerfile in the list over here. And then when you open Dockerfile with Vim, you should…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Test often, ship often3m 56s
-
(Locked)
Setting up your test7m 35s
-
(Locked)
Viewing our test harness in Docker Compose5m 47s
-
(Locked)
Updating the Dockerfile4m 36s
-
(Locked)
Running the test1m 15s
-
Finding criteria for a unit test3m 5s
-
(Locked)
Writing the unit test8m 38s
-
(Locked)
Setting up Selenium5m 2s
-
(Locked)
Running your test with Selenium4m 7s
-
(Locked)
-
-
-