This article will show you how to setup testing environment within a docker network. We will be using
dredd as our testing tools.
Here is a sample
API Blueprint document
We will create a simple express application
import express from "express";
Noted that our endpoint is
http://api:3000 since we are testing with a docker network.
We can expand this setup to add
mysql or any other database.
Since we are testing in
docker, each test will be clean.
Furthermore, you ensure your API document is verbose and accurate enough or
dredd to run tests.