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/.

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.4.tar.gz (7.7 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.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for playtest2-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f4fde15c24e5b113f4a82225c0f60e81ca506d54c4f86eda679f9c9190ba5921
MD5 e3b368af55cb78963a8872777574f0be
BLAKE2b-256 d3dc51c00f859d68b5b3ef145f4f55e5ff816aa2ff226c43d7215ba10a58a9b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for playtest2-0.0.4.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.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for playtest2-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d58b9760ef2cb26b6b8c28fdd0b9c1aad896609ae2e036492b1527079b3d4e5f
MD5 75e0037aaac16ce097de4bcb45b6fcea
BLAKE2b-256 a0227a545973e84831e701dc0be8f12dc40ab4b3d4f5c838908d04b90824d572

See more details on using hashes here.

Provenance

The following attestation bundles were made for playtest2-0.0.4-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