Testing Back-End Services

Learn why, when, and how to test a back-end service to best protect it.

How to approach testing

Now, this might be a tad opinionated, but we like to classify our tests into the following three categories and approach them differently:

  • Functional testing

  • Unit testing

  • End-to-end testing

Functional testing

This kind of test helps us test an end-to-end functional flow that involves multiple smaller methods and modules working together to achieve a goal. Let’s take a stab at writing one.

Now, let’s run the test below. Once successful, we will see a “PASS” message indicating that our test passed!

Get hands-on with 1400+ tech skills courses.