From 5083ab853bd9c619fe750fdd6e2b3f22ab9e98dd Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 10 Mar 2025 11:06:36 -0600 Subject: chore: add a test target --- magefile.go | 4 ++++ test/api_test.go | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 test/api_test.go diff --git a/magefile.go b/magefile.go index 334f658..9272dd4 100644 --- a/magefile.go +++ b/magefile.go @@ -88,3 +88,7 @@ func Protos() error { func Run(ctx context.Context) { mg.CtxDeps(ctx, Idp, UI, Api, Gateway) } + +func Test(ctx context.Context) error { + return sh.RunV("go", "test", "-v", "./...") +} diff --git a/test/api_test.go b/test/api_test.go new file mode 100644 index 0000000..3ef4f52 --- /dev/null +++ b/test/api_test.go @@ -0,0 +1,7 @@ +package main + +import "testing" + +func TestHelloWorld(t *testing.T) { + // t.Fatal("not implemented") +} -- cgit v1.2.3