benchttp / engine

Benchttp library in Go to run performance tests on HTTP endpoints.
Other
4 stars 1 forks source link

feat(tests): retrieve got value #47

Closed GregoryAlbouy closed 2 years ago

GregoryAlbouy commented 2 years ago

Description

Update server response for field tests.results[i]:

Before

{
  "tests": {
    "pass": false,
    "results": [
      {
        "pass": true,
        "summary": "want ResponseTimes.Min > 80ms, got 80.761084ms",
        "input": {
          "name": "minimum response time",
          "field": "ResponseTimes.Min",
          "predicate": "GT",
          "target": 80000000
        }
      }
    ]
  }
}

After

{
  "tests": {
    "pass": false,
    "results": [
      {
        "pass": true,
        "got": 80128242,
        "input": {
          "name": "minimum response time",
          "field": "ResponseTimes.Min",
          "predicate": "GT",
          "target": 80000000
        }
      }
    ]
  }
}

Changes

Notes