Chapter 20 Marble Testing Part I | Angular | Jasmine | Karma | Unit Testing

Опубликовано: 08 Апрель 2026
на канале: Rudra Tech 2014
4,221
48

Marble Testing
It is a great way to test the Observables behaviour over a given time period.
It helps to test simple as well as complex scenarios of Observables.
It uses Strings with special syntax to emulate behaviour of Observable and its data over the of time.
It uses marble frames to test time as a virtual units.
: 10 frames of passage of time.
| : represents completion of observable
^ : represents subscription point.
: represents error
() : grouping multiple events together.
!: unsubscription
Any other character represents value emitted during the passage of time.