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
Sponsored by Syrian Youth Assembly
1,621 already enrolled
(41 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
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
41 reviews
- 5 stars
58.53%
- 4 stars
24.39%
- 3 stars
14.63%
- 2 stars
0%
- 1 star
2.43%
Showing 3 of 41
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
Coursera Project Network
Universidade de São Paulo
Coursera Project Network
Open new doors with Coursera Plus
Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy