github.com/jasonkeene/cli@v6.14.1-0.20160816203908-ca5715166dfb+incompatible/cf/commands/commands_suite_test.go (about)

     1  package commands_test
     2  
     3  import (
     4  	"github.com/cloudfoundry/cli/cf/commands"
     5  	"github.com/cloudfoundry/cli/cf/i18n"
     6  	"github.com/cloudfoundry/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  }