Skip to main content

Cucumber logo
Cucumber Compatibility Kit

Test data for validating compatibility of a Cucumber implementation

npm build backers sponsors build

The CCK (Cucumber Compatibility Kit) is a set of features and messages. It aims to validate an implementation of the Cucumber Messages protocol.

Overview

This kit (package) consists of a set of features, miscellaneous files, and messages:

  • Each area will contain one feature, which, once executed, will emit an exhaustive set of messages as specified by the protocol.
  • Some of these areas may "also" require miscellaneous files to be used when testing functions such as attaching images or documents or reading data from files.
  • Each area will contain a set of messages - serialised as a single .ndjson file.

This is the reference for the CCK: a given feature from the kit, when executed using any dedicated step definitions, must emit the exact corresponding messages.

Installation and Usage

Available as cucumber-compatibility-kit on PyPI.

pip install cucumber-compatibility-kit

The compatibility kit packages gherkin files within a features/ directory, that can be accessed over a Python interface.

>>> from cucumber_compatibility_kit import CompatibilityKit
>>> cck = CompatibilityKit()

# Access all samples paths containing feature files
>>> cck.gherkin()
[Path('/path/to/features/ambiguous'), ..., Path('/path/to/features/unused-steps')]

# Access the samples path for a feature code
>>> cck.feature_code_for("ambiguous")
Path('/path/to/features/ambiguous')

# Directory contains a feature file
>>> from pathlib import Path
>>> cck.(Path('/path/to/features/ambiguous'))
True

More detailed documentation will be defined (#193).

More Info

The Cucumber Compatibility Kit is part of the development tools of Cucumber. It helps ensure that all implementations are properly supporting our internal protocol and are compatible (and consistent) with each other and our common tools like the html-formatter.

It can be a valuable tool if you are developing integration with Cucumber or your own implementation of it.

Join us on github/cucumber/compatibility-kit for more help if needed.

You can also take a look at cucumber-ruby to see how the kit is used in Ruby.

Development

Before building this project locally, the samples must be copied from the devkit.

cd ../devkit
npm ci && npm run copy-to:python
cd ../python

Metadata

Release files for cucumber-compatibility-kit 31.0.1

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-compatibility-kit 31.0.1
File Size Uploaded Provenance Actions
cucumber_compatibility_kit-31.0.1.tar.gz 87.4 kB Without provenance Details for cucumber_compatibility_kit-31.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cucumber-compatibility-kit 31.0.1
File Interpreter ABI Platform Actions
cucumber_compatibility_kit-31.0.1-py3-none-any.whl Python 3 none any Details for cucumber_compatibility_kit-31.0.1-py3-none-any.whl

Total release size: 251.0 kB

Release files / cucumber_compatibility_kit-31.0.1.tar.gz

Download URL cucumber_compatibility_kit-31.0.1.tar.gz
Size 87.4 kB
Tags Source
SHA-256 checksum
How to use checksums
239780a7d693ddff914441405e4619af2d5dc41cdc0b1d3ce417af5a9f93d257
BLAKE2b-256 checksum
How to use checksums
c55e3f92c800614293a190306e17888d97d9415b2a3db6446ecad35aed34f748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cucumber_compatibility_kit-31.0.1-py3-none-any.whl

Download URL cucumber_compatibility_kit-31.0.1-py3-none-any.whl
Size 163.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a5261934ee9c444bf808d2a1b2127dc6f8ed56e332d3ea67c635bca4e3a0565
BLAKE2b-256 checksum
How to use checksums
3563405c09ca5ac79a068ccd92215fa341cfb4acd8fee5fe1b4296ad05e6d95e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for cucumber-compatibility-kit 31.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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