Unit Testing in angular 13 | testing service external AP | test debugging | angular 13 tutorial #33

preview_player
Показать описание
#unittesting #karmatool #angular13

This video explains how to create & execute the unit testing in angular 13

below topics are covered

1, basics of writing & executing test cases
2, Testing the components (TS & HTML file)
3, testing the services with external API
4, debugging the tests
5, TestBed, spyOn, Router testing module
6, Execute specific Test cases

Source Code
===============

Notes
======
TestBed - Configures and initializes environment for unit testing and provides methods for creating components and services in unit tests.
Router Testing Module - Sets up the router to be used for testing.
configureTestingModule() method takes a metadata object that can have most of the properties of an @NgModule. To test a service
Karma - node-based test tool that allows you to test your JavaScript codes across multiple real browsers. 
Jasmine - behavior-driven development framework for testing JavaScript code that plays very well with Karma
Use prefix F for run the specific unit test
Use prefix X for remove the specific test case to run
Рекомендации по теме
Комментарии
Автор

Thanks alot..pls upload beginners to advanced level

sohailamjad
Автор

bro, please do video on writing test cases for live project, that will be more helpful and your dealing with live project explanation will reach out fastly

gunasekhar
Автор

sir can you write test cases for hrm.ts file?

rahulgemanjyothi