feat: add flag --log-plugin to turn on plugin logging

This commit is contained in:
debugtalk
2022-02-25 17:26:02 +08:00
parent a361fe3d03
commit ae929a1d7d
14 changed files with 92 additions and 98 deletions

View File

@@ -77,7 +77,7 @@ func TestRunRequestRun(t *testing.T) {
Config: NewConfig("test").SetBaseURL("https://postman-echo.com"),
TestSteps: []IStep{stepGET, stepPOSTData},
}
runner := NewRunner(t).SetDebug(true).newCaseRunner(testcase)
runner := NewRunner(t).SetRequestsLogOn().newCaseRunner(testcase)
if _, err := runner.runStep(0, testcase.Config); err != nil {
t.Fatalf("tStep.Run() error: %s", err)
}