Frontend testing is impossible! I don’t have time for it! It makes my productivity tank! My manager won’t allow me to do it! These are all excuses for not writing tests for your frontend code. In the interest of time, I will focus on the real reasons – I don’t know how, I’m afraid to start – and alleviate the fear by just writing tests and showing how easy it is.. I will give a recipe that you can follow to ease your fear of the unknown—writing tests. I will discuss the various kinds of testing and how they fit together in a coherent way, but most importantly – we will all exercise and write all the different kinds of tests we learned on a sample application.
Write a complete test suite for any frontend application that covers all aspects of frontend applications.
A Windows, Linux, or MacOS machine with Git, Node.js (versions from 12.x and higher), and preferably Visual Studio Code (although any editor or IDE is OK).
Duration: 1 day
Part 1: What is test automation
- Introduction to testing
- Testing methodologies
- Unit tests using Mocha
- Integration tests using JSDOM
- End to End Browser Automation Tests using Cypress
- Visual Testing using Applitools