github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/integration/plugin/runner_test.go (about) 1 package plugin 2 3 import ( 4 "code.cloudfoundry.org/cli/integration/helpers" 5 . "github.com/onsi/ginkgo" 6 . "github.com/onsi/gomega" 7 . "github.com/onsi/gomega/gexec" 8 ) 9 10 var _ = Describe("running plugins", func() { 11 Describe("plugin command alias", func() { 12 It("can call a command by it's alias", func() { 13 confirmTestPluginOutput("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", "You called Test Plugin Command With Alias!") 14 }) 15 }) 16 17 Describe("panic handling", func() { 18 BeforeEach(func() { 19 session := helpers.CF("install-plugin", "-f", panicTestPluginPath) 20 Eventually(session).Should(Exit(0)) 21 }) 22 23 It("will exit 1 if the plugin panics", func() { 24 session := helpers.CF("freak-out") 25 Eventually(session).Should(Exit(1)) 26 }) 27 }) 28 })