techtest-payments-api

command module
v0.0.0-...-e3f307f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 7 Imported by: 0

README

techtest-payments-api

A demo payments API in Go.

Note: The Author learned Go in 2 days then produced this.

Requirements

  • Golang 1.11.5
  • Go Dep (Golang dependency manager)
  • Tavern (API testing)

Starting the API

Run the API like so:

dep ensure
go run main.go

The API will be running on port 8080.

Unit tests

To run the unit tests, run the following:

go test ./...

API tests

To run API tests, you need python3 intalled on your computer. Then install tavern and pytest with pip like so:

pip install pytest tavern

Then start the API and run the api tests like so:

py.test apitests

Remember to stop and start the API before running the API tests!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL