Skip to content

Use net/http/httptest for API tests #36

@cilki

Description

@cilki

Instead of running main in a goroutine, the net/http/httptest package provides a better way to do API tests. Gin provides a nice example of this: https://github.com/gin-gonic/gin#testing.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions