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

Coursera Project Network

Test your Angular web application using Jasmine and Karma

Coursera Project Network via Coursera

Overview

In this 1-hour long project-based course, you will learn how to generate a new Angular project, create components and write unit tests in the spec file. You will learn how to bootstrap your tests, and will test the presence of text and the action of clicking a button. You will test the presence of HTML attributes, and the passage of data from a parent component to a child component. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Syllabus

  • Project Overview
    • Ever wondered what the “spec” file is in your Angular components? That’s the component unit testing code that is written using Jasmine, the JavaScript testing framework. This project will show you how Jasmine works, and how testing is actually run using Karma. You will generate a new Angular project, create components and write unit tests in the spec file. You will learn how to bootstrap your tests, and will test the presence of text and the action of clicking a button. You will test the presence of HTML attributes, and the passage of data from a parent component to a child component.

Taught by

Sherif A. Tawfik Abbas

Reviews

4.3 rating at Coursera based on 39 ratings

Start your review of Test your Angular web application using Jasmine and Karma

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.