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.



Test your Angular web application using Jasmine and Karma

Instructor: Sherif A. Tawfik Abbas
Access provided by SGCSRC
1,791 already enrolled
(44 reviews)
Recommended experience
What you'll learn
- 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 
Skills you'll practice
Details to know

Add to your LinkedIn profile
Only available on desktop
See how employees at top companies are mastering in-demand skills

Learn, practice, and apply job-ready skills in less than 2 hours
- Receive training from industry experts
- Gain hands-on experience solving real-world job tasks
- Build confidence using the latest tools and technologies

About this Guided Project
Learn step-by-step
In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:
- Create a new angular project using Angular CLI, and start testing 
- Understand how Jasmine, Karma, the spec file and TestBed work 
- Test the main app component for displaying strings and clicking buttons 
- Bootstrap your TestBed configuration for your tests using beforeEach 
- Test the presence of a HTML element 
- Test passing data between components 
Recommended experience
Basic experience in Angular development
3 project images
Instructor

Offered by
How you'll learn
- Skill-based, hands-on learning - Practice new skills by completing job-related tasks. 
- Expert guidance - Follow along with pre-recorded videos from experts using a unique side-by-side interface. 
- No downloads or installation required - Access the tools and resources you need in a pre-configured cloud workspace. 
- Available only on desktop - This Guided Project is designed for laptops or desktop computers with a reliable Internet connection, not mobile devices. 
Why people choose Coursera for their career




Learner reviews
44 reviews
- 5 stars56.81% 
- 4 stars25% 
- 3 stars13.63% 
- 2 stars2.27% 
- 1 star2.27% 
Showing 3 of 44
Reviewed on May 24, 2021
easy to follow and gives good basic understanding of how to write test for front-end
You might also like
 - LearnQuest 
 - Edureka 
 - Board Infinity 


