55 lines
No EOL
923 B
Markdown
55 lines
No EOL
923 B
Markdown
# GIT Clone
|
|
|
|
To clone with submodules, use these git commands:
|
|
|
|
```bash
|
|
git clone --recurse-submodules <repository>
|
|
git submodule update --init // add submodule after normal cloning
|
|
git submodule update --remote // update submodules
|
|
```
|
|
|
|
# Run without Docker
|
|
|
|
### Installation
|
|
|
|
Create a python environment and install all dependencies via
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
playwright install
|
|
```
|
|
|
|
Run the script with
|
|
|
|
```bash
|
|
python main.py
|
|
```
|
|
|
|
# Run with Docker
|
|
|
|
```bash
|
|
docker compose build
|
|
docker compose run --rm app python ./main.py
|
|
docker compose run --rm app pytest
|
|
# docker-compose up
|
|
```
|
|
|
|
Force rebuild with cache
|
|
|
|
```bash
|
|
docker-compose up --build
|
|
```
|
|
|
|
Force rebuild wtihtout cache
|
|
|
|
```bash
|
|
docker-compose build --no-cache
|
|
```
|
|
|
|
# Codegen
|
|
|
|
Use playwright codegen to create code for new testes easily https://playwright.dev/python/docs/codegen
|
|
|
|
```bash
|
|
playwright codegen demo.playwright.dev/todomvc
|
|
``` |