github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/commands/plugin/plugin_suite_test.go (about) 1 package plugin_test 2 3 import ( 4 "path/filepath" 5 6 "code.cloudfoundry.org/cli/cf/commands/plugin" 7 "code.cloudfoundry.org/cli/cf/i18n" 8 "code.cloudfoundry.org/cli/util/testhelpers/configuration" 9 "code.cloudfoundry.org/cli/util/testhelpers/pluginbuilder" 10 . "github.com/onsi/ginkgo" 11 . "github.com/onsi/gomega" 12 13 "testing" 14 ) 15 16 func TestPlugin(t *testing.T) { 17 config := configuration.NewRepositoryWithDefaults() 18 i18n.T = i18n.Init(config) 19 20 _ = plugin.Plugins{} 21 22 RegisterFailHandler(Fail) 23 24 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_with_help") 25 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_with_orgs") 26 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_with_orgs_short_name") 27 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_with_push") 28 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_with_push_short_name") 29 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_1") 30 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "test_2") 31 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "empty_plugin") 32 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins"), "alias_conflicts") 33 34 RunSpecs(t, "Plugin Suite") 35 }