Backend Testing

This project is a backend testing exercise for the Sustainable Testing course. It is designed to provide hands-on experience in applying best practices for sustainable testing within a modern development environment.

Requirements

  • Node.js
  • NVM

Getting Started

Before starting the project, you must switch to the correct Node version and install the necessary dependencies. Run the following commands in your terminal:

nvm use
npm install

Script Commands

Start Backend

To start the backend of the application in development mode, run:

npm start

Unit Tests

To run the unit tests using Jest, run:

npm run test:unit

Integration Tests

To run the integration tests using Jest, run:

npm run test:integration

Run All Tests

To run all tests (Integration and unit) in one operation, run:

npm test

Solution

The solution to the backend testing exercise can be found in the final branch of this repository.