Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Amazon Web Services

Write a Unit Test

Amazon Web Services and Amazon via AWS Skill Builder

Overview

Languages Available: 日本語 | 한국어 | 中文(简体)

This lab picks up where the Commit a Bugfix lab left off. Git has been configured for a generic Student and the PresidentsApp repository in AWS CodeCommit has already been cloned to the AWS Cloud9 instance. The main.html file has been corrected so that the banner image displays correctly.

Level

Intermediate

Duration

1 Hours 0 Minutes

Course Objectives

By the end of this lab, you will be able to do the following:

  • Verify that the unit test passes.
  • Update the Presidents application to calculate the ages of the presidents by using the relativedelta type.
  • Push changes to the PresidentsApp CodeCommit repository.
  • Verify that the application calculates the ages correctly after the pipeline finishes the new unit testing and deployment stages.

Intended Audience

This course is intended for:

  • Developers

Prerequisites

To successfully complete this lab:

  • Familiarity with the basic navigation of the AWS Management Console.
  • Versed in editing and running scripts by using an AWS Cloud9 code editor and terminal.
  • A basic understanding of and familiarity with Git, AWS CodePipeline, and AWS CodeDeploy.
  • Prior experience with AWS services and serverless computing is helpful, but isn’t required.

Course Outline

  • Task 1: Verify if there is a bug in the application
  • Task 2: Update the application logic and unit tests

Reviews

Start your review of Write a Unit Test

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.