diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-10 11:06:36 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-10 11:06:36 -0600 |
| commit | 5083ab853bd9c619fe750fdd6e2b3f22ab9e98dd (patch) | |
| tree | 521e7b8f2d6487c89da9adae7043c365c616528f | |
| parent | 498fbcab97b2c8edc6baa97c7995e1f8d25b4573 (diff) | |
chore: add a test target
| -rw-r--r-- | magefile.go | 4 | ||||
| -rw-r--r-- | test/api_test.go | 7 |
2 files changed, 11 insertions, 0 deletions
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") +} |
