Skip to content

Commit

Permalink
add version command test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrie30 committed Aug 5, 2019
1 parent 7019872 commit 9507f46
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ghorg_test.go
Original file line number Diff line number Diff line change
@@ -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())
}

0 comments on commit 9507f46

Please sign in to comment.