Documentation ¶
Index ¶
- Constants
- func JobCodeCheck() db.TestJobPayload
- func JobGitPull(gitHttpUrl, branch, accessToken string) db.TestJobPayload
- func JobGrpcTest(addr string, testCases []view.GrpcTestCase) db.TestJobPayload
- func JobUnitTest(accessToken string) db.TestJobPayload
- func New(options ...StepOption) *db.TestPipelineDesc
- type JobCodeCheckPayload
- type JobGitPullPayload
- type JobGrpcTestPayload
- type JobHttpTestPayload
- type JobUnitTestPayload
- type StepOption
- func Parallel(flag bool) StepOption
- func StepCodeCheck() StepOption
- func StepGitPull(gitHttpUrl, branch, accessToken string) StepOption
- func StepGrpcTest(addr string, testCases []view.GrpcTestCase) StepOption
- func StepHttpTestCollection(collection db.HttpTestCollection, testCases []db.HttpTestCase) StepOption
- func StepJob(name string, jobPayload db.TestJobPayload) StepOption
- func StepSubPipeline(options ...StepOption) StepOption
- func StepUnitTest(accessToken string) StepOption
Constants ¶
View Source
const ( StepGitPullName = "git_pull" StepCodeCheckName = "code_check" StepUnitTestName = "unit_test" StepHttpTestName = "http_test" StepGrpcTestName = "grpc_test" )
Variables ¶
This section is empty.
Functions ¶
func JobCodeCheck ¶
func JobCodeCheck() db.TestJobPayload
func JobGitPull ¶
func JobGitPull(gitHttpUrl, branch, accessToken string) db.TestJobPayload
func JobGrpcTest ¶
func JobGrpcTest(addr string, testCases []view.GrpcTestCase) db.TestJobPayload
func JobUnitTest ¶
func JobUnitTest(accessToken string) db.TestJobPayload
func New ¶
func New(options ...StepOption) *db.TestPipelineDesc
Types ¶
type JobCodeCheckPayload ¶
type JobCodeCheckPayload struct { }
type JobGitPullPayload ¶
type JobGrpcTestPayload ¶
type JobGrpcTestPayload struct { Addr string `json:"addr"` TestCases []view.GrpcTestCase `json:"test_cases"` }
type JobHttpTestPayload ¶
type JobHttpTestPayload struct { Collection db.HttpTestCollection `json:"collection"` TestCases []db.HttpTestCase `json:"test_cases"` }
type JobUnitTestPayload ¶
type JobUnitTestPayload struct {
AccessToken string `json:"access_token"`
}
type StepOption ¶
type StepOption func(desc *db.TestPipelineDesc)
func Parallel ¶
func Parallel(flag bool) StepOption
func StepCodeCheck ¶
func StepCodeCheck() StepOption
func StepGitPull ¶
func StepGitPull(gitHttpUrl, branch, accessToken string) StepOption
func StepGrpcTest ¶
func StepGrpcTest(addr string, testCases []view.GrpcTestCase) StepOption
func StepHttpTestCollection ¶
func StepHttpTestCollection(collection db.HttpTestCollection, testCases []db.HttpTestCase) StepOption
StepHttpTestCollection 执行 Http 测试用例集合
func StepJob ¶
func StepJob(name string, jobPayload db.TestJobPayload) StepOption
func StepSubPipeline ¶
func StepSubPipeline(options ...StepOption) StepOption
func StepUnitTest ¶
func StepUnitTest(accessToken string) StepOption
Click to show internal directories.
Click to hide internal directories.