Runner provides common data for running integration tests.
type Runner struct { Org1Name string Org2Name string Org1AdminUser string Org2AdminUser string Org1User string Org2User string ChannelID string CCPath string // contains filtered or unexported fields }
func New() *Runner
New constructs a Runner instance using defaults.
func NewWithExampleCC() *Runner
NewWithExampleCC constructs a Runner instance using defaults and configures to install example CC.
func (r *Runner) ExampleChaincodeID() string
ExampleChaincodeID returns the generated chaincode ID for example CC.
func (r *Runner) Initialize()
Initialize prepares for the test run.
func (r *Runner) Run(m *testing.M)
Run executes the test suite against ExampleCC.
func (r *Runner) SDK() *fabsdk.FabricSDK
SDK returns the instantiated SDK instance. Panics if nil.
func (r *Runner) TestSetup() *integration.BaseSetupImpl
TestSetup returns the integration test setup.