github.com/jd-ly/cmd@v1.0.10/revel/run_test.go (about) 1 package main_test 2 3 import ( 4 "github.com/stretchr/testify/assert" 5 "os" 6 "testing" 7 ) 8 9 // test the commands 10 func TestRun(t *testing.T) { 11 a := assert.New(t) 12 gopath := setup("revel-test-run", a) 13 14 // TODO Testing run 15 16 if !t.Failed() { 17 if err := os.RemoveAll(gopath); err != nil { 18 a.Fail("Failed to remove test path") 19 } 20 } 21 }