Functional / integration testing of NodeJS ReST API implementation

I created a NodeJS application using mongoose and express. This application provides resources in ReSTful mode, and I'm trying to build a set of functional / integrated tests.

This package at startup should run my application in an isolated environment (working on the local host is fine) with a custom set of configuration parameters (the path to which can be provided as an environment variable). Any other custom configuration steps must be completed.

After completing the test suite, the database (mongodb) must be deleted, and any custom break actions must be performed.

What are some NodeJS / modules / etc frameworks to achieve this?

Thanks Tharsan

+4
source share
1 answer

Mocha can handle the test environment itself, while Tobi or zombi can make web calls.

+4
source

Source: https://habr.com/ru/post/1441440/


All Articles