togo install togo-framework/testingpart of the togo-framework — the full-stack Go + React framework
A PHPUnit-style test harness for togo:
HTTP request helpers + fluent assertions + an in-memory SQLite helper. Import as
togotest. The CLI togo make:test and togo make:e2e (Playwright, Dusk-style)
generate tests that use it.
togo install togo-framework/testingimport togotest "github.com/togo-framework/testing"
func TestList(t *testing.T) {
r := togotest.Do(t, handler, "GET", "/api/posts", nil)
r.Status(t, 200).JSON(t, &out)
}togo is proudly sponsored by ID8 Media and One Studio.