Get tests
get_testsFetches full static details for up to 20 test IDs from find_tests or test_summary, including location, tags, conditions, and scan diagnostics without running tests.
Instructions
Returns every key of the tests with the given ids, with the scan diagnostics about them, read from the test files without running them: location, describe path, state and where it is set, condition, reason, tags, annotations, comments above the test, parameters and body hash. Use it after find_tests or test_summary, for the details of up to 20 tests. Ids come from find_tests and stay the same when a test moves to another line, but change when its title, describe or file changes; ids not in the current scan are returned in notFound. Example: {"ids": ["3f9a0c1d2e4b5a69"]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Test ids, as find_tests returns them. | |
| patterns | No | Globs of the test files, relative to `directory`, such as ["tests/**/*.spec.ts"]. Default: the ones the server was started with. | |
| directory | No | A folder inside the project to scan, relative to its root, such as "packages/web". Default: the root. | |
| framework | No | The test runner. Default: the one the server was started with. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | Yes | ||
| tests | Yes | The tests found, in the order of ids. | |
| notFound | Yes | Ids that are not in this scan. | |
| framework | Yes | ||
| scanErrors | Yes | Problems of level error in the scan, which may leave tests out of the answer. | |
| diagnostics | Yes | Problems the scan reports about these tests. | |
| frameworkVersion | Yes |