Skip to content

JamalZeynalov/allure-results-sample

Repository files navigation

Set of tests used as examples for "Allure Docker Service UI"

Clone this GitHub project:

> git clone git@github.com:JamalZeynalov/allure-results-sample.git

Run tests locally:

> pip install -r requirements.txt
> pytest

Note: "alluredir" cmd option is already set in pytest.ini


Run tests in the docker container:

Build an image and run tests in the docker container:

> docker build -t test-image .
> sh dockerized_tests.sh test-image

The Doclerfile used here is created for "arm64" version of JDK 11.
So, you have to change the path in the JAVA_HOME environment variable if you use another version.

or use pre-built image from the dockerhub:

> sh dockerized_tests.sh jamalzeinalov/test-image

Note: Use git bash to run shell scripts on Windows


Send results:

If your "Allure Docker Service UI" is currently running on your host machine then you can run send_allure_results.py

> python send_allure_results.py

This script sends all files from "target/allure-results" dir to "Allure Docker Service".


For more information about "Allure Docker Service UI" check https://hub.docker.com/repository/docker/jamalzeinalov/allure_docker_service_ui

About

This is a sample of automated tests with allure annotations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published