daniel 0fafa22272 cleanup (#18)
- remove demo runner

- improve docs

- rename all tests to test_* (previously, also setup_* and cleanup_* existed) to improve stability as it is not guaranteed that pytest.ini is loaded.

- improve logging formatting

- improve full integration test

Reviewed-on: https://git.local-it.org/local-it-infrastructure/e2e_tests/pulls/18
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-15 17:57:48 +01:00
2023-12-15 17:57:48 +01:00
2023-12-08 18:17:31 +01:00
2023-12-14 14:03:58 +01:00
2023-12-15 17:57:48 +01:00
2023-12-15 17:57:48 +01:00
2023-12-15 17:57:48 +01:00
2023-12-14 14:03:58 +01:00
2023-12-14 14:03:58 +01:00
2023-12-07 13:02:39 +01:00
2023-12-14 14:03:58 +01:00
2023-12-15 17:57:48 +01:00
2023-12-14 14:03:58 +01:00

pytest-abra

Pytest-Abra is an installable python package baed on pytest, designed to test instances created with abra. After installation, you will have two things:

  • abratest CLI command. Used to initialize the testing.

  • pytest-abra Pytest plugin. Automatically loads custom fixtures in any pytest run (see pytest_abra/custom_fixtures.py)

Usage

Pytest-abra can easily be installed on any system but also offers a Docker image. To use pytest-abra, follow these steps:

Usage [without Docker]

Installation [without Docker]

To clone with submodules, use these git commands:

git clone --recurse-submodules <repository>
// optional:
git submodule update --init    // add submodule after normal cloning
git submodule update --remote  // update submodules

Create a python environment and install all dependencies via

pip install -e .
playwright install

Run [without Docker]

Run the helper script or directly use the cli command (see docs)

python main.py  # run pytest-abra
abratest [options]

Usage [with docker]

Installation [with docker]

To clone with submodules, use these git commands:

git clone --recurse-submodules <repository>
// optional:
git submodule update --init    // add submodule after normal cloning
git submodule update --remote  // update submodules

Build the image

docker compose build  # build the image
docker compose build --no-cache  # Force rebuild without cache

Run [with docker]

Run the script

docker compose run --rm app python main.py  # run pytest-abra
docker compose run --rm -it app /bin/bash  # use the container interactively
S
Description
A Local-IT end-to-end testing prototype with playwright (see main/dev branches for different approaches)
https://git.local-it.org/local-it/e2e_tests
Readme 160 KiB
Languages
Python 100%