installable package (#9)
* turn repo into installable package (pip install -e .) * add hatchling build packend * call it pytest-abra * add pytest entrypoint, so that it gets loaded automatically if installed (and pytest is run) * make fixtures optional, so that pytest can still be used in other context * add cli script -> you can now directly run "pytest-abra" in console Reviewed-on: local-it-infrastructure/e2e_tests#9 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
4c5a470a70
commit
8685688698
33 changed files with 294 additions and 210 deletions
23
README.md
23
README.md
|
|
@ -1,9 +1,9 @@
|
|||
# AbraTest
|
||||
# pytest-abra
|
||||
...description...
|
||||
|
||||
# Usage
|
||||
|
||||
To use AbraTest, follow these steps:
|
||||
To use pytest-abra, follow these steps:
|
||||
|
||||
## 1. GIT Clone
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ git submodule update --remote // update submodules
|
|||
|
||||
## Run
|
||||
|
||||
You can run AbraTest with and without Docker. Choose now and follow the steps accordingly:
|
||||
You can run pytest-abra with and without Docker. Choose now and follow the steps accordingly:
|
||||
|
||||
## 2.1 Run without Docker
|
||||
|
||||
|
|
@ -33,17 +33,14 @@ playwright install
|
|||
Run the script with
|
||||
|
||||
```bash
|
||||
python main.py # run abratest
|
||||
pytest # test abratest
|
||||
pytest --collect-only # debug test abratest
|
||||
python main.py
|
||||
```
|
||||
|
||||
# 2.2 Run with Docker
|
||||
|
||||
```bash
|
||||
docker compose build # build the image
|
||||
docker compose run --rm app ./run_abratest.sh # run AbraTest
|
||||
docker compose run --rm app ./test_abratest.sh # test AbraTest
|
||||
docker compose run --rm app ./run_pytest-abra.sh # run pytest-abra
|
||||
```
|
||||
|
||||
Force rebuild with cache
|
||||
|
|
@ -64,4 +61,12 @@ Use playwright codegen to create code for new testes easily https://playwright.d
|
|||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue