No description
| abratest | ||
| envfiles@a8375f6fc7 | ||
| previous-work | ||
| prototyping | ||
| recipes | ||
| tests | ||
| .gitignore | ||
| .gitmodules | ||
| conftest.py | ||
| docker-compose.yml | ||
| Dockerfile | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
AbraTest
...description...
Usage
To use AbraTest, 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 AbraTest 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 # run abratest
pytest # test abratest
2.2 Run with Docker
docker compose build # build the image
docker compose run --rm app python ./main.py # run AbraTest
docker compose run --rm app pytest # test AbraTest
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