Skip to content

togo-framework/testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

togo

togo-framework/testing

marketplace pkg.go.dev MIT

Part of the togo framework.

Install

togo install togo-framework/testing

togo

testing

part 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/testing
import 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)
}

💎 Premium sponsors

togo is proudly sponsored by ID8 Media and One Studio.

ID8 Media        One Studio


Premium sponsors

ID8 Media  ·  One Studio

Support togo — become a sponsor.

About

togo test harness (HTTP + assertions + sqlite)

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages