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 steps

Spec example

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

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

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

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

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.2.tar.gz (6.1 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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: playtest2-0.0.2.tar.gz
  • Upload date:
  • Size: 6.1 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.2.tar.gz
Algorithm Hash digest
SHA256 e3cd1dfa186223ac568a765afe03ce3eec53bbebc2c5d895d41d05975d3f3f99
MD5 ff768253e4f9da4e7d5e3ac030145139
BLAKE2b-256 6205e1230b322efd4e43749c041acba67640aac5c150753af302f304eb3afd6d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: playtest2-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc42b723d4fdfd1aa9a33e019dcc6347a7f6067aaa159517e545ac29c31381b
MD5 bcd144df03ec4b000d8bd59738e7ca8e
BLAKE2b-256 9d31449d64d0e30d4a236fd6c96f277d09552f355058dddfbe00a3121a811bdf

See more details on using hashes here.

Provenance

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