No description
Find a file
2023-12-04 14:30:51 +01:00
envfiles@a8375f6fc7 [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
previous-work rework-output-and-test-logic (#3) 2023-11-29 14:14:46 +01:00
prototyping new-features (#5) 2023-12-04 12:46:30 +01:00
src sort_env_files_by_rule now supports duplicate types 2023-12-04 14:30:51 +01:00
tests add second test, cleanup 2023-12-04 13:32:56 +01:00
.gitignore authentik setup and tracing (#2) 2023-11-27 17:01:45 +01:00
.gitmodules [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
conftest.py fix imports for /tests 2023-12-04 14:13:22 +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 new-features (#5) 2023-12-04 12:46:30 +01:00
pyproject.toml new-features (#5) 2023-12-04 12:46:30 +01:00
README.md new-features (#5) 2023-12-04 12:46:30 +01:00
requirements.txt new-features (#5) 2023-12-04 12:46:30 +01:00

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 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 with Docker

docker compose build
docker compose run --rm app python ./main.py
docker compose run --rm app pytest
# docker-compose up

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