Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 348 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 348 Bytes

testy

Simple client library for testingt HTTP and REST apis in Go (inspired by Resty)

Doesn't implement assertions. Use your favorite test library.

  api := testy.New(handler)

  response := api.Get("/hello")
  assert.Equal(t, 200, response.StatusCode, "OK response is expected")
  assert.Equal(t, "hello, world!", response.String())