Keine Angst vor dem eigenen Quellcode .NETDAY Mai, 2017 Thomas Bandixen (@tbandixen) Thomas Gassmann (@gassmannT) @gassmannT @tbandixen BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENF HAMBURG KOPENHAGEN LAUSANNE MÜNCHEN STUTTGART WIEN ZÜRICH
Who are we? Thomas Bandixen Senior Consultant & Trainer Trivadis AG thomas.bandixen@trivadis.com @tbandixen 2 23.05.2017 .NETDAY Mai 2017
Who are we? Thomas Gassmann Senior Consultant & Trainer Trivadis AG thomas.gassmann@trivadis.com @gassmannT 3 23.05.2017 .NETDAY Mai 2017
Content 1. Introduction 2. Unit Test 3. Outro 4 23.05.2017 .NETDAY Mai 2017
What kind of tests exists? Unit Tests e2e Tests Test certain functions or units Runs the real application and of code simulate the users behavior Super fast Very slow Easy to write Very fragile 7 23.05.2017 .NETDAY Mai 2017
Test Strategy Use the smallest test type possible Write readable tests Make tests fail Test all the time 8 23.05.2017 .NETDAY Mai 2017
Tools & Setup 9 23.05.2017 .NETDAY Mai 2017
Tools 10 23.05.2017 .NETDAY Mai 2017
Test runner Test code on various browsers Integrate with various continuous integration services like Jenkins 13 23.05.2017 .NETDAY Mai 2017
Behavior-driven development framework Fast Dependency free 14 23.05.2017 .NETDAY Mai 2017
End-to-end test framework Built on top of Selenium WebDriverJS Runs in a real browser Test like a user 15 23.05.2017 .NETDAY Mai 2017
Insiders' tip Wallaby.js Integrated Continuous Testing Tool for JavaScript 16 23.05.2017 .NETDAY Mai 2017
Demo 17 23.05.2017 .NETDAY Mai 2017
Unit Tests 18 23.05.2017 .NETDAY Mai 2017
Definition Unit Testing is a level of software testing where individual functions of a sofware are tested. The purpose is to validate that each function of the software performs as designed. 19 23.05.2017 .NETDAY Mai 2017
Unit Test vs. Integration Test Unit Test Integration Test Test in isolation, without Test with external resources external resources (e.g. (e.g. templates) templates) Just a simple function 20 23.05.2017 .NETDAY Mai 2017
Template Component Service 21 23.05.2017 .NETDAY Mai 2017
Template Component FakeService 22 23.05.2017 .NETDAY Mai 2017
It helps you catch defects before releasing software 23 23.05.2017 .NETDAY Mai 2017
Basics 24 23.05.2017 .NETDAY Mai 2017
Basics 25 23.05.2017 .NETDAY Mai 2017
Demo 26 23.05.2017 .NETDAY Mai 2017
How to start Angular CLI Our Demos Documentation on Angular Docs Ask us 27 23.05.2017 .NETDAY Mai 2017
Demos and slides github.com/gassmannT/Angular-Testing-DOTNETDAY/ 28 23.05.2017 .NETDAY Mai 2017
Thank you – Besten Dank Thomas Bandixen Thomas Gassmann thomas.bandixen@trivadis.com thomas.gassmann@trivadis.com @tbandixen @gassmannT Tel. +41 58 459 52 78 Tel. +41 58 459 52 81 29 23.05.2017 .NETDAY Mai 2017
Recommend
More recommend