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

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Hi Rudra, great tutorials. Waiting for more videos in angular unit testing

vaishak
Автор

Great work with these unit testing tutorials, can you demonstrate NgRx unit testing with Karma?

thatscommenting
Автор

I dont understand about frame at 4:55.. -X--| (- is for 10 frame) and (-x-^-y-| is for 40 frame and 80 frame),
would you please explain

ankitkumar-ihqo
Автор

Hi Sir, thank you for your tutorials. I'm encountering a problem running the test containing the subscription. I have this error "Expected $[0] to be a kind of SubscriptionLog, but was SubscriptionLog({ subscribedFrame: 0, unsubscribedFrame: 50 })."
Could you check if the test still works. Thanks.

GuessTheScene
Автор

good tutorials but your english blows my brain. I can't hear you more than 5 minutes.

piurek