Start your end to end testing

with cypress.io

Victor Borshchov, Triare

Topics

  • Testing intro
  • What is Cypress?
  • Demo

Testing pyramid

Which type of testing is most important?

unit, e2e, both?

Unit and integration tests are great place to start but E2E tests combines everything and actually find bugs.

Unit testing

  • Fast
  • Reliable
  • Isolated faillures



  • Prefered by developers



  • Time consuming

E2E testing

  • Simulates a real user
  • Catches real bugs
  • Often easy to migrate from manual testing


  • Prefered by managers



  • Needs a deployed service to test
  • Many code-paths to test

Tests are about giving confidence to developer

Tests can hold your back

  • Not fast enough feedback
  • Feedback is unclear
  • Updating tests is hard
  • Too complex tests
  • Too many tests, testing the same

Use the right strategy

Try to minimise the amount of double testing

Use the right tools

Cypress.io

What is cypress?

Cypress is open source testing tool written entirely in JavaScript

Cypress spawns & drives the browser manually exatly like you do in development

Brian Mann - founder Cypress.io

Features

  • Time Travel.
  • Debuggability.
  • Automatic Waiting.
  • Spies, Stubs, and Clocks.
  • Network Traffic Control.
  • Consistent Results.
  • Screenshots and Videos.

You can write your first passing test in 60 seconds.

Demo time

Questions?

Thank you