add version command test

This commit is contained in:
Jay Gabriels
2019-08-05 09:00:51 -07:00
parent 70198725b4
commit 9507f46c03

17
ghorg_test.go Normal file
View File

@@ -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())
}