Skip to main content

Shared BDD feature files for Porto SDKs

Project description

Porto Features

validation codecov

Structured feature specifications for Porto SDKs

A validated collection of Gherkin feature files and JSON fixtures that define behavioral contracts for Python and TypeScript SDKs. Files are checked in CI and packaged for distribution on npm and PyPI.


Install

npm (scope: @gruncellka)

npm install @gruncellka/porto-features

PyPI (Python)

pip install gruncellka-porto-features

The package includes porto_features/features/*.feature and porto_features/fixtures/**/*.json, so SDK tests can run offline with the same source of truth in both ecosystems.

  • PyPI: import porto_features; use files under porto_features/features and porto_features/fixtures.
  • npm: files live under porto_features/ in node_modules/@gruncellka/porto-features/.

Use cases

SDK contract tests (Python/TypeScript parity), BDD documentation, regression safety during SDK releases.


Validate locally

make setup
make quality
make test-coverage

This runs feature/fixture validation, Gherkin linting, Python lint/format checks, type checks, and test coverage gates used by CI.


Feature statistics

9 feature files; 80+ scenarios across API, CLI, pricing, restrictions, validation, services, and stamp generation. Address fixtures include DE, FR, CH, GB, NO, UA, US, and DE sender origin.


Feature and fixture overview

File Description
api_comprehensive_testing.feature End-to-end API behavior scenarios
cli.feature CLI usage and output behavior
data_access.feature Data loading and access behavior
pricing.feature Pricing logic by type/zone/weight
resolution.feature Resolution workflow behavior
restrictions.feature Restrictions and sanctions behavior
services.feature Service catalog behavior
stamp_generation.feature Stamp generation behavior
validation.feature Validation and error behavior
porto_features/fixtures/addresses/*.json Test addresses by country/zone

Feature files are validated via scripts/validate_features.py, and fixture JSON files are validated via scripts/validate_fixtures.py. Fixtures are shipped for deterministic tests.


Standards

  • Feature format: Gherkin (.feature), Cucumber-compatible
  • Fixture format: JSON (.json)
  • Country codes: ISO 3166-1 alpha-2 (DE, US, FR, UA)

Disclaimer

This is reference feature specification data for Porto SDKs. Always verify that SDK implementations and runtime behavior match these specifications before shipping to production.


Related resources


🔳 gruncellka

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

gruncellka_porto_features-0.2.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

gruncellka_porto_features-0.2.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file gruncellka_porto_features-0.2.0.tar.gz.

File metadata

File hashes

Hashes for gruncellka_porto_features-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4dd1e04223a10d4cd69b40cc3b475a1863ef5c678c359b4efb1dd7f97dbc8190
MD5 a87fce188816ade27e961c2ec7482820
BLAKE2b-256 ef8b76b05f52e207406ede143c88e402bd534d5982ade6678115953d89a2e207

See more details on using hashes here.

Provenance

The following attestation bundles were made for gruncellka_porto_features-0.2.0.tar.gz:

Publisher: publish.yml on gruncellka/porto-features

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gruncellka_porto_features-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gruncellka_porto_features-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f75a856280a8bdca81893e78b115cb355fcd3f6f1c6e66cbbb1c7329e1fa6892
MD5 3e51e43c743ac059eec322f1111bb891
BLAKE2b-256 987f862831d977aff3b1ffa1ff22cb68e208005ade65bfde9b7e995014022d71

See more details on using hashes here.

Provenance

The following attestation bundles were made for gruncellka_porto_features-0.2.0-py3-none-any.whl:

Publisher: publish.yml on gruncellka/porto-features

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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