Testing

A key factor to maintainability and scaling

Why do we test our code?

Most of the benefits of testing appears with time, but it has benefits even in the short term:

  • To make sure that the code you just wrote behaves as expected

  • To provide some specifications about the correct behaviour of your code

  • To give you confidence when refactoring existing code

  • To make sure that developers will see when they brake existing behaviour

What do we test?

At this point, our focus is on testing the backend, not much is done on the frontend side.

Here is the minimal expectations we have regarding specs into the backend:

  • specs for API endpoints

  • specs for service methods

For the frontend:

  • specs for new utils, helpers and macros.