@anyonce/conformance
v0.1.0
Published
Conformance runner and vectors for draft-ietf-httpapi-idempotency-key-header
Readme
@anyonce/conformance
The conformance runner, CLI (anyonce-conformance) and vectors for
draft-ietf-httpapi-idempotency-key-header, split into a core tier (what the draft requires) and a
profile tier (anyonce's own choices). The runner only speaks HTTP, so it grades any implementation in
any language.
Install
bun add -d @anyonce/conformance
npm i -D @anyonce/conformanceNo peer dependencies.
Usage
bunx @anyonce/conformance --url http://localhost:3000 --tier coreOr run it from code:
import { runConformance } from '@anyonce/conformance';
const { summary, report } = await runConformance({
target: { baseUrl: 'http://localhost:3000' },
report: 'markdown',
});
console.log(report);
if (summary.failed > 0 || summary.errored > 0) process.exitCode = 1;@anyonce/conformance/runtime is the same runner without the vector loader and the CLI, for runtimes
without node:fs such as workerd; pass the vectors in directly.
Links
- Repository
- docs/conformance.md: running the suite against anything, reading the report, adding a vector.
- conformance/REPORT.md: the cross-implementation report.
Licence
Apache-2.0
