Test your Angular web application using Jasmine and Karma

4.4
22 個評分
提供方
Coursera Project Network
在此指導項目中,您將:

Understand how the Jasmine test framework apply unit testing to Angular apps

Understand how Karma spawns test instances

Understand how to write unit tests in Jasmine

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

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.

您要培養的技能

  • Karma
  • Typescript
  • Jasmine testing
  • Unit Testing
  • Angular development

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Create a new angular project using Angular CLI, and start testing

  2. Understand how Jasmine, Karma, the spec file and TestBed work

  3. Test the main app component for displaying strings and clicking buttons

  4. Bootstrap your TestBed configuration for your tests using beforeEach

  5. Test the presence of a HTML element

  6. Test passing data between components

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

授課教師

審閱

來自TEST YOUR ANGULAR WEB APPLICATION USING JASMINE AND KARMA的熱門評論

查看所有評論

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心