mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 12:49:31 +08:00
refactor: Run with config
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user