Skip to content

See what your checks cover

Before you begin

Plan
Included in Free, Pro and Team. How plans and limits work
Role
Viewer or higher.
You need
  • A project with an OpenAPI contract

See which operations of the contract your recorded traffic has been checked against, and how the latest check went, so you know where the contract is proved by real requests and where nothing has been checked.

  1. Open the project’s OpenAPI tab.

  2. Beside Operations, select Coverage.

  3. To read another revision the project keeps, choose it under Revision, such as Revision 2. The active one is shown first.

  4. To find an operation, type part of its path, operationId or summary into Search operations and press Enter, or open Every method and choose one.

A line names the revision read, such as Revision 3 (active), and how long a check lasts on your plan. Each operation then shows:

Line Shows
The mock count How many mocks are linked to the operation now, and how many of them are active, such as 2 mock(s) linked now, 1 active.
A mock’s answer The latest check of a response one of your mocks sent for this operation
An upstream capture The latest check of a response your upstream sent, in a capture
Each variant Each example the revision offers, whether it is Configured and Observed, and the latest check of a request it answered

A latest check is Valid, Invalid, Incomplete or Not checked, with when it was checked and when its request was logged. No check recorded means no logged response was checked against this revision for that operation, whatever other revisions show.

A contract variant is Configured when a mock holds a response imported from it, active or not, in the mocks it is listed under. It is Observed when a recorded check is of a request that response answered. Being configured says nothing about the response having been served: Not observed in a recorded check means no checked log shows it. A variant marked no longer in this revision is one today’s imported responses came from that this revision does not offer; Not configured: no mock holds a response imported from it is one nothing serves.

A check names the response the request log recorded as answering, so an operation whose mock holds a 200 and a 422 does not show both as exercised after one request.

Coverage shows the latest check as it was made. A note says when it may no longer hold:

Note Means
Checked by an older version of the checker: check again for a current result. MockHub’s checker has changed since; the same response may now be judged differently
That mock has been edited since, so this says nothing about it now. The mock that answered changed after the check
That mock has been deleted since. The mock that answered is gone; its log and check stay

Check the log again, from the request logs, to replace it.

A check is recorded when a request log is checked: one at a time with Check against the contract, in bulk, by an AI assistant, or by the background checks, whose checks coverage labels checked … by a background check. Preview and validate in Try it, and checks of a document you have not imported, record nothing. Reading coverage checks nothing.

Each log keeps its latest check against each revision. The check goes when its log does, by the plan’s retention or a deletion, and when its revision does, by trimming history or deleting the contract.

  • A latest check is the newest check of one logged request. It does not prove every request, example or status of the operation was exercised, and an older valid check never hides a newer invalid one.
  • A variant’s check is the one of a request whose log recorded that response as the one that answered. A log written before MockHub recorded it is attributed by the mock’s import link as it is now, and says so.
  • The mocks listed beside an earlier revision are today’s mocks, not the ones of that revision’s time.
  • Responses appears beside an operation only for the active revision and an operation with a linked mock. It lists the mock’s responses, with Edit response, Make default and Copy request; see Choose the response that answers.

Report a problem with this page