Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 1.41 KB

README.md

File metadata and controls

73 lines (53 loc) · 1.41 KB

API UNIT TEST

Build Status Go Report Card Maintainability Test Coverage

Golang web api testing samples

Run

Build

    $ make build

Start mongodb container

    $ make start

Stop mongo container

    $ make stop

Tests

Unit tests

    $ make test

Database integration tests

    $ make integration

Api acceptance tests

    $ make acceptance

Test all

    $ make test-all

Cover

Generate/update cover

    $ make cover

view cover html (xdg-open browser default)

    $ make cover-html

Requirements

Docker

Docker compose

Go 1.10+

go dep

Slides da talk no TDC 2018, trilha GOLANG

https://www.slideshare.net/MarceloAymone/testando-apis-de-forma-unitria-mocando-as-dependncias

:D