refactor: Run with config

This commit is contained in:
debugtalk
2021-09-22 20:12:33 +08:00
parent 4c2d7673fa
commit 9fb19da2ac
7 changed files with 13 additions and 10 deletions

View File

@@ -32,9 +32,9 @@ func (r *Runner) Run(testcases ...*TestCase) error {
}
func (r *Runner) runCase(testcase *TestCase) error {
// config := testcase.Config
config := &testcase.Config
for _, step := range testcase.TestSteps {
if err := step.Run(); err != nil {
if err := step.Run(config); err != nil {
return err
}
}