In this video, learn how to flesh out your RSpec unit test skeleton by learning how to write unit tests against a website. Briefly explore using Chrome Dev Tools to find a DOM element to test against and writing an RSpec unit test to verify its presence.
- [Narrator] We have a website that runs Explore California. … We have a Docker file that starts our website locally. … And we have some unit tests that can do some testing … against our website. … And all that stuff is linked together with Docker Compose. … Let's actually work on fleshing out some … of these unit tests. … So if we look at the unit test that we have … we can see that there's not a whole lot going on. … So we use Capybara to test against the website … and do things with it, and we use RSpec … as our testing framework, which is a Ruby-based … testing framework that uses an English-like domain … specific language to write tests. … But there's not a whole lot of testing going on here, right? … Like, we have a structure for page render unit tests … and a test shell that tests that we have an Explore … California logo but we don't have anything going on here. … Let's spin up the website and try and find … where that logo is by its CSS selector and then write … a test to actually test against that. …
- Writing your first Dockerfile
- Using Docker Compose
- Testing your app with RSpec, Capybara, and Selenium
- Writing Terraform code
- Deploying a website into AWS S3
- Writing and running integration tests
- Writing a CI/CD pipeline with Jenkins
Skill Level Beginner
1. The Project/The Mission
Your application, pre-DevOps2m 59s
2. Testing Locally with Docker
3. Testing Your App with RSpec, Capybara, and Selenium
4. Infrastructure as Code with Terraform
5. CI/CD as Code with Jenkins
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.