Clone this GitHub project:
> git clone git@github.com:JamalZeynalov/allure-results-sample.git> pip install -r requirements.txt
> pytestNote: "alluredir" cmd option is already set in pytest.ini
Build an image and run tests in the docker container:
> docker build -t test-image .
> sh dockerized_tests.sh test-imageThe 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-imageNote: Use git bash to run shell scripts on Windows
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.pyThis 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