Skip to main content

Python port of uzabase/playtest2

Project description

playtest2

PyPI - Version PyPI - Python Version


Table of Contents

Installation

Prerequisites

Setting up Gauge with playtest2

  1. Create a new dedicated virtual environment for Gauge in a separate directory from your E2E test project:
$ mkdir /path/to/gauge-project  # Specify your own path here
$ cd /path/to/gauge-project
$ python -m venv .venv --upgrade-deps
$ source .venv/bin/activate
  1. Install playtest2 in the virtual environment:
(.venv) $ python -m pip install playtest2

Usage

Gauge Configuration

Edit python.properties in env/default/ (Or run experimental command playtest2 setup).

STEP_IMPL_DIR = /**absolute**/path/of/gauge-project/.venv/lib/python3.x/site-packages/playtest2

Create playtest2.properties in env/default/.

SUT_BASE_URL = http://127.0.0.1:8000

On activating the virtual environment for Gauge, run gauge command in your E2E test project:

(.venv) $ cd /path/to/e2e/project
(.venv) $ gauge run specs

Spec example

# サンプルアプリのテスト

## GETリクエストが送れる

* パス"/"に
* メソッド"GET"で
* リクエストを送る

* レスポンスのボディが
* JSONのパス"$.message"に対応する値が
* 文字列の"Hello World"である

Development

Prerequisites: Hatch (Installation)

Lint

hatch fmt && hatch run types:check

Test

hatch test --randomize --doctest-modules

License

playtest2 is distributed under the terms of the MIT license.

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

playtest2-0.0.6.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

playtest2-0.0.6-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file playtest2-0.0.6.tar.gz.

File metadata

  • Download URL: playtest2-0.0.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for playtest2-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1833d0de77b4bc054f464a5f563ce910fc76378ce3d050dce6a2eb6c38dd97b1
MD5 3c41d7c042087be6df773197a76a3833
BLAKE2b-256 e52790c24f58bfa5df6389942dd7b2da081ede63a3158eb6f4713b49a7c5a579

See more details on using hashes here.

Provenance

The following attestation bundles were made for playtest2-0.0.6.tar.gz:

Publisher: publish.yaml on ftnext/playtest2-python

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

File details

Details for the file playtest2-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: playtest2-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for playtest2-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 627283964256fd0e05b22dbc640eb07f9646e266c90a0b45d543c1fb858966db
MD5 c31ec9a8af66bd4c62e2b71227c6e2cb
BLAKE2b-256 f9ce8da292e6dba99b936d15953a940812fb1e38ad4ca4e139f3532a54e796a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for playtest2-0.0.6-py3-none-any.whl:

Publisher: publish.yaml on ftnext/playtest2-python

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