how to implement unit tests for your Angular application with the Test-Driven Development approach
how to choose the type of unit-tests that fits best depending on the context
how to implement maintainable and human-readable unit-tests
how to decouple tests from code to encourage refactoring and tidying up when needed
the difference between fakes, stubs, spies, and mocks + how and when to use them
the difference between isolated, shallow & integration component testing
how to choose the right scope for your tests
how and when to use Angular CDK Test Harnesses
lots of tips & tricks that will help you adopt a profitable testing strategy
SPEAKER'S BIO
Younes Jaaidi
Software Cook, Coach & Teacher at Marmicode
Younes is a Google Developer Expert for Angular & Web Technologies. He is a trainer, eXtreme Programming coach & tech advisor who loves the challenge of boosting teams' efficiency and helping everyone enjoy every part of their job. His experience convinced him that the key to making quality products is collective ownership, passion, and knowledge sharing. In his spare time, you will find him contributing to open-source software, writing articles or speaking at meetups or conferences… and sometimes sailing. His favorite trick? Adding features by removing code.
WORKSHOP FORMAT
The best way to improve your professional skills
Overview — 10min
Workshop — 30min
Lecture — 30min
Break — 10min
Workshop — 1h30
Break — 10min
Workshop — 1h30
Break — 10min
Workshop — 1h30
Q/A — 20min
FOR WHOM?
For developers who are familiar with Angular basics (e.g. Components, Services, Observables, Inputs, Outputs). An experience with Angular testing will be beneficial in order to grasp more tips & tricks.
Unit-testing or more specifically, front-end unit-testing is undeniably in the top 3 of the most complex topics associated with Angular development.
When one is confronted with this complexity, it is tempting to give up, but at what cost? It is totally possible to develop an application without unit-tests but is it really faster? What happens to code maintainability a few months or sometimes just weeks later? Can we serenely refactor and deploy our apps regularly while it is getting older and complex in our hands? What about end-to-end tests, aren't they enough?
This workshop presents, through practical exercises, pragmatic Angular unit-testing techniques. You will also learn how to implement human-readable, maintainable, and above all profitable tests.
For developers who are familiar with Angular basics (e.g. Components, Services, Observables, Inputs, Outputs). An experience with Angular testing will be beneficial in order to grasp more tips & tricks.
Unit-testing or more specifically, front-end unit-testing is undeniably in the top 3 of the most complex topics associated with Angular development.
When one is confronted with this complexity, it is tempting to give up, but at what cost? It is totally possible to develop an application without unit-tests but is it really faster? What happens to code maintainability a few months or sometimes just weeks later? Can we serenely refactor and deploy our apps regularly while it is getting older and complex in our hands? What about end-to-end tests, aren't they enough?
This workshop presents, through practical exercises, pragmatic Angular unit-testing techniques. You will also learn how to implement human-readable, maintainable, and above all profitable tests.
SHOW MORE
COURSE BENEFITS:
You will be able to decouple your tests from the tested code so you change the code structure without having to fix tests all the time
You will learn how to write profitable tests, in other terms
You will also learn how to leverage the benefits of Progressive TDD and Timeboxed TDD to change your code with confidence
You'll learn how to reduce the cost of writing and maintaining tests while increasing their trustworthiness. This will boost the whole team's confidence and efficiency.
You will be able to choose the right tests to implement and how to implement them.