diff --git a/README.md b/README.md index 613b59a..b8e51f1 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,12 @@ client.API(request, function (response) { # Usage [Library Usage Documentation](https://github.com/sendgrid/nodejs-http-client/blob/master/USAGE.md) +# Tests + +Tests can be run through a [Docker](https://www.docker.com) container which is defined in the [docker-compose.yml](docker-compose.yml) file. + +To run the tests, simply run `docker-compose up`. + # Roadmap diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f7056fe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3" +services: + + node-test: + image: "node:4.5.0" + working_dir: /srv/www + environment: + - NODE_ENV=production + volumes: + - ./:/srv/www + command: "npm run test"