github.com/elopio/cli@v6.21.2-0.20160902224010-ea909d1fdb2f+incompatible/cf/commands/commands_suite_test.go (about) 1 package commands_test 2 3 import ( 4 "code.cloudfoundry.org/cli/cf/commands" 5 "code.cloudfoundry.org/cli/cf/i18n" 6 "code.cloudfoundry.org/cli/testhelpers/configuration" 7 . "github.com/onsi/ginkgo" 8 . "github.com/onsi/gomega" 9 10 "testing" 11 ) 12 13 func TestCommands(t *testing.T) { 14 config := configuration.NewRepositoryWithDefaults() 15 i18n.T = i18n.Init(config) 16 17 _ = commands.API{} 18 19 RegisterFailHandler(Fail) 20 RunSpecs(t, "Commands Suite") 21 } 22 23 type passingRequirement struct { 24 Name string 25 } 26 27 func (r passingRequirement) Execute() error { 28 return nil 29 }