diff --git a/pkg/runner/http.go b/pkg/runner/http.go index 47a5e042..ae651323 100644 --- a/pkg/runner/http.go +++ b/pkg/runner/http.go @@ -188,7 +188,7 @@ func (r *simpleTestCaseRunner) RunTestCase(testcase *testing.TestCase, dataConte return } - r.log.Debug("test case %q, status code: %d\n", testcase.Name, resp.StatusCode) + r.log.Debug("test case %q, test case info: %v, status code: %d\n", testcase.Name, testcase, resp.StatusCode) if err = testcase.Expect.Render(dataContext); err != nil { return diff --git a/pkg/server/remote_server_test.go b/pkg/server/remote_server_test.go index dd4c7d9b..c16caa92 100644 --- a/pkg/server/remote_server_test.go +++ b/pkg/server/remote_server_test.go @@ -148,7 +148,7 @@ func TestRunTestCase(t *testing.T) { }) assert.NoError(t, err) assert.Equal(t, sampleBody, result.Body) - assert.Contains(t, result.Output, "start to run: 'get'\nstart to send request to http://foo\ntest case \"get\", status code: 200\n") + assert.Contains(t, result.Output, "start to run: 'get'\nstart to send request to http://foo\ntest case \"get\", test case info: &{ get {http://foo GET map[] map[key:value] map[] map[] } {0 map[] map[] [] [] }}, status code: 200\n") }) t.Run("text response", func(t *testing.T) {