Quick Start

How to get copy of project and run tests.

Prerequisites

  • Git
  • GoLang 1.19+
  • Docker with built-in compose command (optional)
  • Makefile support (optional)

Setup

Note: Some users may require to run commands with sudo

git clone https://github.com/pawelWritesCode/godog-http-api.git && cd godog-http-api

Next run all command:

make all

Afterwards you can run tests using 3 distinct ways

Local OS

make tests-using-host

Docker

make tests-using-docker

Docker compose

make tests-using-compose

For more usage examples examine Usage section.


From now on, you can write your own tests (files with *.feature extension) using provided pre-defined steps.