Test data used to validate a Cucumber implementation
Project description
Cucumber Compatibility Kit
Test data for validating compatibility of a Cucumber implementation
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
.ndjsonfile.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cucumber_compatibility_kit-29.1.3.tar.gz.
File metadata
- Download URL: cucumber_compatibility_kit-29.1.3.tar.gz
- Upload date:
- Size: 79.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e844e9c9ebab41e972b70981acfcfce230818d081d257265cb3dbccbefb3ee
|
|
| MD5 |
aea7a2f674b7835f29fc9f90cde1b77c
|
|
| BLAKE2b-256 |
583bfb155d5c80e58737c5c2b8ee139dd6d10bc1d2adcdf41c79840a15671416
|
File details
Details for the file cucumber_compatibility_kit-29.1.3-py3-none-any.whl.
File metadata
- Download URL: cucumber_compatibility_kit-29.1.3-py3-none-any.whl
- Upload date:
- Size: 149.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28a835fc055d6ef9ee1433fe8cb418c7e756f9c479d4f4730c4b1f9bad39b4fa
|
|
| MD5 |
44346fc8effbb7ed59f459297b80ab83
|
|
| BLAKE2b-256 |
e07d727dc188e0cb21b6c4b5b151e6540361750296c6ac70bfccc51e8455664d
|