diff --git a/ghorg_test.go b/ghorg_test.go new file mode 100644 index 0000000..9f9348d --- /dev/null +++ b/ghorg_test.go @@ -0,0 +1,17 @@ +package main + +import ( + "log" + "os" + "os/exec" + "testing" +) + +func TestMain(m *testing.M) { + err := exec.Command("go", "run", "main.go", "version").Run() + if err != nil { + log.Fatal(err) + } + + os.Exit(m.Run()) +}