Python port of https://github.com/uzabase/playtest2
https://github.com/ftnext/playtest2-python.git
Install playtest2 in the virtual environment of your E2E test project:
(.venv) $ python -m pip install playtest2
1) Run playtest2 setup to automatically create python.properties in env/default/.
(.venv) $ playtest2 setup
# If you have own step implementation directories
(.venv) $ playtest2 setup your_step_impl1 your_step_impl2
[!TIP]
Generated env/default/python.properties example> STEP_IMPL_DIR = /**absolute**/path/of/your-project/.venv/lib/python3.x/site-packages/playtest2,your_step_impl1,your_step_impl2 >
2) Create playtest2.properties in env/default/.
SUT_BASE_URL = http://127.0.0.1:8000
Run gauge command in your E2E test project:
(.venv) $ gauge run specs
# ใตใณใใซใขใใชใฎใในใ
## GETใชใฏใจในใใ้ใใ
* ใใน"/"ใซ
* ใกใฝใใ"GET"ใง
* ใชใฏใจในใใ้ใ
* ใฌในใใณในใฎใใใฃใ
* JSONใฎใใน"$.message"ใซๅฏพๅฟใใๅคใ
* ๆๅญๅใฎ"Hello World"ใงใใ
Prerequisites: Hatch (Installation)
hatch fmt && hatch run types:check
hatch test --randomize --doctest-modules
playtest2 is distributed under the terms of the MIT license.