Skip to content

aymone/api-unit-test

Repository files navigation

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

About

Golang web api testing samples

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published