github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+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/cf/util/testhelpers/configuration" 7 . "github.com/onsi/ginkgo" 8 . "github.com/onsi/gomega" 9 log "github.com/sirupsen/logrus" 10 11 "testing" 12 ) 13 14 func TestCommands(t *testing.T) { 15 config := configuration.NewRepositoryWithDefaults() 16 i18n.T = i18n.Init(config) 17 18 _ = commands.API{} 19 20 RegisterFailHandler(Fail) 21 RunSpecs(t, "Commands Suite") 22 } 23 24 var _ = BeforeEach(func() { 25 log.SetLevel(log.PanicLevel) 26 }) 27 28 type passingRequirement struct { 29 Name string 30 } 31 32 func (r passingRequirement) Execute() error { 33 return nil 34 }