Skip to content
中文

Read a commit's test catalog

Code Mode: praxis.devops.projects.retrieveTestCatalog

HTTP: GET /devops/v1/projects/{project}/test-catalog

Read the catalog version discovered at one commit — how many suites and cases it holds, which frameworks they come from, and how the commit changed them. Call this first: it tells you which suites, cases and sizes exist before you list them or select them into a plan, and the reported diff explains why a case count moved. A commit whose discovery has not finished answers CATALOG_NOT_READY, which means “not yet”, not “no tests”; wait and read again. Omit commit to read the newest catalog published for the project.

Signature

praxis.devops.projects.retrieveTestCatalog(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string};query?:{/** e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c" */ commit?:string}}):Promise<{/** The project this catalog belongs to, from the project list or create answer. e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string;/** Full 40-character commit sha the discovery read; a catalog always describes exactly one commit, never a moving branch. e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c" */ commit:string;/** RFC 3339 UTC time the discovery finished and this version became readable. e.g. "2026-11-03T09:15:00Z" */ publishTime:string;/** Test frameworks the discovery found in this commit, in the order it found them. */ frameworks:Array<"gherkin"|"bun"|"vitest"|"jest"|"pytest"|"go"|"playwright">;/** How many suites this catalog holds; a suite is one test file in one framework. e.g. 42 */ suiteCount:number;/** How many cases this catalog holds; cases are the individual tests a plan selects from. e.g. 318 */ caseCount:number;/** How many cases this catalog holds per test size, which is what a size-based selector matches against. */ sizeCounts:{/** Cases declared small — one process, no network, about a minute. e.g. 210 */ small?:number;/** Cases declared medium — local services allowed, about five minutes. e.g. 88 */ medium?:number;/** Cases declared large — external systems allowed, about fifteen minutes. e.g. 20 */ large?:number};/** How this catalog differs from the one published before it, which explains a moved case count. */ diff:{/** Cases present here and absent from the previous catalog. e.g. 4 */ added?:number;/** Cases present in the previous catalog and absent here, because their code was deleted. e.g. 1 */ removed?:number;/** Cases whose declaration changed — steps, tags, size or owners — while keeping their identity. e.g. 2 */ changed?:number;/** Cases whose title changed but whose identity did not, so their history moved with them instead of starting over. e.g. 1 */ renamed?:number}}>;

Parameters

NameInTypeRequiredDescription
projectpathstringyesIdentifies the project whose data you are reading, from the project list or create answer.
commitquerystringnoFull 40-character commit sha whose catalog you want, from a project branch or commit read. Omit it to read the newest catalog published for the project.

Responses

StatusContent typesDescription
200application/jsonThe catalog version in force at that commit, with its counts and its diff against the previous published catalog.
400application/jsonINVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible.
404application/jsonPROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
409application/jsonCATALOG_NOT_READY means discovery for that commit is still running, so the catalog is not final; read again in a moment. A catalog is never invented for a commit that has none.
500application/jsonINTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.