ctrf attestation type in Kosli that validates test reports and enforces a zero-failures compliance rule.
Prerequisites
- Install Kosli CLI.
- Get a Kosli API token.
- A Kosli flow and trail to attest to — follow the Getting started guide if you need one.
Download the CTRF schema
Download the official for CTRF to a file namedctrf-schema.json:
Create the attestation type
Usekosli create attestation-type to define the new type with a that requires zero failed tests:
attestation-type ctrf was created.
You can verify it exists by running:
Report a CTRF attestation
Once your tests have run and produced a CTRF report (e.g.ctrf-report.json), report it to Kosli:
ctrf-report.json against the schema and evaluate the jq rule. If .results.summary.failed is 0, the attestation will be marked as compliant.
What you’ve accomplished
You have created a reusablectrf custom attestation type and used it to report a test result to Kosli. Any team in your organisation can now use this same type to uniformly enforce a zero-failures quality gate across all projects, regardless of which testing framework they use.
From here you can:
- Read the
kosli create attestation-typereference for all available options - Read the
kosli attest customreference for attesting to artifacts - Review naming conventions for attestation types