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