No description
Find a file
2023-12-07 11:55:35 +01:00
envfiles@a8375f6fc7 [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
previous-work installable package (#9) 2023-12-07 11:32:01 +01:00
prototyping installable package (#9) 2023-12-07 11:32:01 +01:00
pytest_abra installable package (#9) 2023-12-07 11:32:01 +01:00
recipes installable package (#9) 2023-12-07 11:32:01 +01:00
tests installable package (#9) 2023-12-07 11:32:01 +01:00
.gitignore installable package (#9) 2023-12-07 11:32:01 +01:00
.gitmodules [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
docker-compose.yml [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
Dockerfile rework-output-and-test-logic (#3) 2023-11-29 14:14:46 +01:00
main.py installable package (#9) 2023-12-07 11:32:01 +01:00
pyproject.toml re-add cli script 2023-12-07 11:55:35 +01:00
README.md installable package (#9) 2023-12-07 11:32:01 +01:00
requirements.txt installable package (#9) 2023-12-07 11:32:01 +01:00
run_abratest.sh refactor so that coordinator instance is available in runner instance (#8) 2023-12-06 12:05:13 +01:00
test_abratest.sh refactor so that coordinator instance is available in runner instance (#8) 2023-12-06 12:05:13 +01:00

pytest-abra

...description...

Usage

To use pytest-abra, follow these steps:

1. GIT Clone

To clone with submodules, use these git commands:

git clone --recurse-submodules <repository>
git submodule update --init    // add submodule after normal cloning
git submodule update --remote  // update submodules

Run

You can run pytest-abra with and without Docker. Choose now and follow the steps accordingly:

2.1 Run without Docker

Installation

Create a python environment and install all dependencies via

pip install -r requirements.txt
playwright install

Run the script with

python main.py

2.2 Run with Docker

docker compose build  # build the image
docker compose run --rm app ./run_pytest-abra.sh  # run pytest-abra

Force rebuild with cache

docker-compose up --build

Force rebuild wtihtout cache

docker-compose build --no-cache

Codegen

Use playwright codegen to create code for new testes easily https://playwright.dev/python/docs/codegen

playwright codegen demo.playwright.dev/todomvc

Development

pytest  # test pytest-abra
pytest  --collect-only  # debug test pytest-abra
docker compose run --rm app ./test_pytest-abra.sh  # test pytest-abra