Skip to main content

Test data used to validate a Cucumber implementation

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cucumber_compatibility_kit-27.0.0.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cucumber_compatibility_kit-27.0.0-py3-none-any.whl (139.5 kB view details)

Uploaded Python 3

File details

Details for the file cucumber_compatibility_kit-27.0.0.tar.gz.

File metadata

  • Download URL: cucumber_compatibility_kit-27.0.0.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cucumber_compatibility_kit-27.0.0.tar.gz
Algorithm Hash digest
SHA256 ce51ab7698c36d3c73a85469be2edf9df49b979bb12e1ed2b85e0b14f1226247
MD5 231b5c5c5ebe8e29d58b70234bdcfd4c
BLAKE2b-256 61767c802d2a986fae36c1dd3aaa5c2c218da8eae6663d0d792e57184992692d

See more details on using hashes here.

File details

Details for the file cucumber_compatibility_kit-27.0.0-py3-none-any.whl.

File metadata

  • Download URL: cucumber_compatibility_kit-27.0.0-py3-none-any.whl
  • Upload date:
  • Size: 139.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cucumber_compatibility_kit-27.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e60aa3865be43d47bd4bdfaa293bbd81c686aa271115d90f1925c3260864ad6c
MD5 2b3fefc6a37974d9b9d6b2e4027ca71f
BLAKE2b-256 61c3b672b39f0bca4631ff058e6ca1ff9d1fc1d0732c8481cc03e0990869598c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page