Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 633 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 633 Bytes

API - functional tests

Let's assume you wrote some micro service exposing a simple REST API.
Let's further assume this API will be a 'name store' - So you can PUT names into it and GET a list of all names.

Directories:

  • nameapi - the microservice under test
  • tests - the testing code
  • healthcheck - contains a simple healthcheck that will help docker to determine that nameapi is available. The test-orchestration code will wait for nameapi to be healthy before starting the tests.

Take a look at main.go which implements the test orchestration using dockertest.