feat: runStepTestCase

This commit is contained in:
debugtalk
2021-09-24 11:31:34 +08:00
parent a2ca1cd0dd
commit c9f1f8e42f

View File

@@ -47,7 +47,7 @@ func (r *Runner) runStep(step IStep, config *TConfig) error {
// run referenced testcase
log.Printf("run referenced testcase: %v", tc.step.Name)
// TODO: override testcase config
if err := r.runCase(tc.step.TestCase); err != nil {
if err := r.runStepTestCase(tc.step); err != nil {
return err
}
} else {
@@ -84,6 +84,11 @@ func (r *Runner) runStepRequest(step *TStep) error {
return nil
}
func (r *Runner) runStepTestCase(step *TStep) error {
testcase := step.TestCase
return r.runCase(testcase)
}
func (r *Runner) GetSummary() *TestCaseSummary {
return &TestCaseSummary{}
}