been there. Front-end testing is a difficult challenge everyone faces, and lots of people tend to run away from. More often than not it’s fragile, brittle, and sometimes even useless. In this presentation, Louay will talk about his experience in creating a team culture and a toolset that facilitates writing front-end tests for developers which are valuable and less fragile & flakey, and he’ll also discuss some tools and best practices that help with tracking and increasing tests and test coverage. By Louay Alakkad At the digital studio Friday 5 Oct 2017 16:30
and grew up in Syria, lived and worked in the UAE, Jordan, Turkey, the UK, Germany, and Latvia ▸ My job is to help big businesses deliver products faster and with higher quality ▸ My favourite city is (still) İstanbul. ▸ Aaaand having said that, you should follow catsofistanbul on Instagram ;)
BUT IT’S SLIGHTLY DIFFERENT ▸ Frontends run on different platforms and environments, and you should be aware of that ▸ In frontends, most bugs come from unpredictable user or unexpected integration behaviour ▸ Frontend tests are usually a nightmare to read ▸ With all the frameworks that we use, they’re also a nightmare to write
TRACK ▸ Measure, know where you are, Duh! ▸ Automate, it’s your fanciest suit, Duh! ▸ Enforce a threshold and keep on increasing it so no code changes would be accepted unless they’re tested
PICTURE ▸ Unit tests are very useful but never enough. Do functional tests instead. They’re more human-readable and cover much more code. Use tools like enzyme and redux-saga-test-plan ▸ Try to run your test suites on different devices and browsers at least once a day. Use services like modern.ie, Sauce Labs, Selenium Grid and AWS Device Farm
repeat yourself. Don’t share fixtures between tests ▸ Don’t think of test code like production code. Performance is not a priority in tests ▸ Tests should be optimised for deletion, meaning that they’re independent and self-contained in one place. Don’t split your tests and their data across different files HOW I MET YOUR COVERAGE THRESHOLD