Skip to main content

cucumber-json-aggregator

Aggregate multiple Cucumber JSON reports (Cucumber-JVM and cucumber-js) into a single report.

pip install cucumber-json-aggregator     # installs `cucumber-json-aggregator` and `cja`

Usage

cja [INPUTS]... [-o OUT] [--strategy concat|merge|dedupe] [--dedupe-policy last|pass|worst]
    [--indent N | --compact] [--strict] [--quiet]
cja reports/ -o combined.json
cja 'reports/**/*.json' extra.json --strategy dedupe --dedupe-policy worst -o combined.json

Inputs may be files, glob patterns (expanded internally, so quote them and they work the same on Windows) and directories (scanned recursively for *.json). Files are processed in argument order; glob/directory matches are sorted. A file matched more than once is read once.

Output goes to stdout, or to -o OUT. Indentation defaults to 2; --compact minifies. A summary (files, features, scenarios, passed/failed, duplicates removed) is written to stderr; --quiet hides it.

Strategies

Strategy Behaviour
concat Concatenate the top-level arrays as-is
merge (default) Group features by key (uri → id → name) and append all elements, keeping duplicates. Other feature fields come from the first occurrence; tags are unioned
dedupe Like merge, but collapse duplicate scenarios (key: id+line, else name+line). A background stays attached to its scenario

--dedupe-policy picks the winner among duplicates: last (default; later file), pass (a passing copy if any, else the latest), worst (failed > undefined > pending > ambiguous > skipped > passed; ties go to the later copy). A scenario's status comes from its before hooks, steps and after hooks.

Features and scenarios keep first-seen order, and all fields (hooks, embeddings, durations, unknown keys…) are passed through verbatim.

Bad input

Empty, whitespace-only and [] files are valid and contribute nothing. Invalid JSON, non-UTF-8 files, non-array roots and array items that aren't features produce a warning and are skipped. A UTF-8 BOM is accepted. A glob/directory that matches nothing warns. With --strict any warning is a failure and nothing is written.

Exit codes

Code Meaning
0 Success
1 Error in --strict mode (or the output could not be written)
2 Usage error, no input files matched, or an input is also the output path

Development

uv sync
uv run ruff check . && uv run ruff format --check . && uv run mypy && uv run pytest

The version comes from the git tag via hatch-vcs (v1.2.0 → 1.2.0); untagged checkouts report 0.0.0. Releases are cut by running the Publish workflow manually (Actions → Publish → Run workflow, entering major, minor, hotfix, or an explicit version like 1.2.0; the bump is applied to the latest v* tag): it tests, tags the new version, builds and publishes to PyPI through trusted publishing, which needs a pypi environment configured on both PyPI and GitHub.

MIT licensed.

Metadata

Release files for cucumber-json-aggregator 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cucumber-json-aggregator 0.1.0
File Size Uploaded Provenance Actions
cucumber_json_aggregator-0.1.0.tar.gz 53.9 kB With provenance Details for cucumber_json_aggregator-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cucumber-json-aggregator 0.1.0
File Interpreter ABI Platform Actions
cucumber_json_aggregator-0.1.0-py3-none-any.whl Python 3 none any Details for cucumber_json_aggregator-0.1.0-py3-none-any.whl

Total release size: 65.1 kB

Release files / cucumber_json_aggregator-0.1.0.tar.gz

Download URL cucumber_json_aggregator-0.1.0.tar.gz
Size 53.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b6979381a0e48c0df0d008515f9d2140751011f61f15eb0558797bff5fdf0287
BLAKE2b-256 checksum
How to use checksums
1b89f7141bc83d4908c95cf60b031caabcaee63757a867556044707685f71c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / cucumber_json_aggregator-0.1.0-py3-none-any.whl

Download URL cucumber_json_aggregator-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
086f7b6ef7babc26787716d29ddaa86c4a6dfaa77d3552a31bc2d380ad4540c3
BLAKE2b-256 checksum
How to use checksums
3266367aba95b9b808cb5da7fff02c7245869a1aa8c5693a1afed8a228791fc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for cucumber-json-aggregator 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cucumber_json_aggregator-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page