Find the API endpoints no test runs
Test suites grow by accident. Someone adds the endpoints they were working on, someone else adds a regression test after an incident, and a year later nobody knows which requests are tested and which only exist in the collection.
Requestarium's test suites show that gap directly.
Coverage, per suite
Open a suite in Tests. The header shows the last run and how many of the requests in the suite's collections the suite covers. "38 of 45" is a number you can track and argue about in a planning meeting, which is more than most teams have.
A request counts as covered when the suite runs it, whether you added it as a card, through a folder or collection package, or through a rule.
The Not covered list
In the Requests panel on the left, Not covered lists the requests of the suite's collections that it doesn't run yet. Each one can be added on its own, or all at once with Add all.
Before you press Add all, look at the list. Some requests don't belong in an automated suite:
- requests that change production data with no way to undo it;
- one-off admin or migration requests;
- requests kept as examples or for debugging.
Move those into a folder of their own (for example Manual) and leave that folder out of the suite. Then "Not covered" means "should be covered" again.
Keep the tree readable
Requests already in the suite are marked in the tree with how they got there: added, via a folder, via a collection, or via a rule package. Hide requests already in the suite keeps the list short while you work through what's left.
Cover by folder, not by request
Hand-picked cards are fine for a handful of key requests. For coverage, packages are better:
- A folder package follows the folder: when someone adds a request to Orders, the suite runs it next time.
- A collection package follows a whole collection.
- A rule package follows a rule, such as "every
GETin Billing whose URL contains/invoices". See rule-based suites.
With packages, the Not covered list stays short on its own, and new endpoints are tested from their first day. If a package's request shouldn't run in this suite, remove it from the package: it's skipped in this suite only, and restore brings it back.
Covered is not tested
A request in a suite with no checks only proves that it returns a status below 400. On the canvas, each request shows how many checks it runs, or no checks when only the status code is checked. Look for those after you add requests:
- use Generate from the last response after a run for starter checks;
- or put rules on the collection or folder, which every request inherits (see assertions on a collection or folder).
Make it a habit
Check the coverage number when you review a pull request that adds endpoints. If the collection gained three requests and the suite's count didn't move, the new endpoints aren't tested.