move testing to Development

This commit is contained in:
Daniel 2023-12-06 13:23:44 +01:00
parent bdf427224c
commit 87fcab5b29

View file

@ -33,9 +33,7 @@ playwright install
Run the script with Run the script with
```bash ```bash
python main.py # run pytest-abra python main.py
pytest # test pytest-abra
pytest --collect-only # debug test pytest-abra
``` ```
# 2.2 Run with Docker # 2.2 Run with Docker
@ -43,7 +41,6 @@ pytest --collect-only # debug test pytest-abra
```bash ```bash
docker compose build # build the image docker compose build # build the image
docker compose run --rm app ./run_pytest-abra.sh # run pytest-abra docker compose run --rm app ./run_pytest-abra.sh # run pytest-abra
docker compose run --rm app ./test_pytest-abra.sh # test pytest-abra
``` ```
Force rebuild with cache Force rebuild with cache
@ -64,4 +61,12 @@ Use playwright codegen to create code for new testes easily https://playwright.d
```bash ```bash
playwright codegen demo.playwright.dev/todomvc playwright codegen demo.playwright.dev/todomvc
``` ```
## Development
```bash
pytest # test pytest-abra
pytest --collect-only # debug test pytest-abra
docker compose run --rm app ./test_pytest-abra.sh # test pytest-abra
```