Skip to main content

pytest plugin for testing cloudflare workers

Project description

pytest cloudflare worker

CI Coverage pypi versions license

CloudFlare worker system tests packaged as a pytest plugin.

Features:

  • real environment - the plugin deploys your worker to a preview environment, then routes real HTTPS requests to the worker so you get a true environment in tests
  • advanced features - like environment variables and KV worker database work out of the box
  • wrangler integration - the plugin integrated with wrangler to build your worker and setup bindings like environment variables and KV worker namespaces
  • logging - logs from workers using console.log(...) are available in tests

In beta, this package is currently active development, API may change at any time

Install

pip install pytest-cloudflare-worker

Usage

TODO

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

pytest-cloudflare-worker-0.0.4.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

pytest_cloudflare_worker-0.0.4-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

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