Level: Introductory to Intermediate
I hate writing tests! There, I said it! I think TDD gets in my way, and it annoys me! People who preach it annoy me! People who tell me that "I just don't understand it" annoy me! Not to mention the ones that say, "real professional developers use TDD". Unfortunately, this "religious" view on testing has also kept me away from writing tests in my Angular applications for years. Until I decided to give it a try on my own terms. And you wouldn't believe what happened next…
In this talk you will get an introduction to testing Angular applications from a person that dislikes TDD with a passion. It won't be the usual sermon about how great testing is! It's all about testing Angular applications in a pragmatic way. It will give you enough to understand how to write the tests, but also information about what benefits different tests can give you, and why you might want to use them. Even if you don't like writing tests, like me, I have actually come to the conclusion that some of them actually make my development life less annoying.
DISCLAIMER: If you are a TDD person, you are more than welcome, but accept the fact that you will not see tests written up front. You might also want to know that there will likely be personal opinions expressed about testing, that you do not agree with. It is purely about writing tests, and their potential benefits, and not about "religion".
You will learn:
- An understanding of why testing is important even if you are not using TDD
- Knowledge of what different techniques that can be used when unit testing Angular applications
- A basic understanding of how to do end-to-end tests in with Angular and Protractor