Open vlad230 opened 1 year ago
Found a solution to this problem, in case anyone still has it: You need to use allure-pytest-bdd python library in order for the report to show up in BDD format. The problem for us was that someone installed allure-pytest manually inside the docker image and it was using that one instead of the correct one listed inside our dependencies.
Jenkins and plugins versions report
Environment
```text Jenkins allure plugin version: allure-jenkins-plugin:2.30.3 Jenkins Allure cmd line version: 2.23.1 (same version on my local machine) ```What Operating System are you using (both controller, and any agents involved in the problem)?
This Jenkins pipeline is running inside AKS, I use Mac OS on my local machine.
Reproduction steps
python -m poetry run pytest -ra -q --cucumber-json=test.json --alluredir allure-dir
(same cmd as on my local machine)Local execution:
Jenkins execution:
Expected Results
The generated report is the same as the one generated on my local machine, with BDD type steps like Given, When Then inside the Suites -> Test Item -> Overview Tab -> Test Body.
Actual Results
The report is generated but it's not in a BDD style, it just displays Scenario name from the .feature file inside Suites -> Test Item -> Overview Tab -> Description
Anything else?
How can I see this report in a BDD style on Jenkins using the plugin? This is the pipeline code I use:
allure([ includeProperties: false, jdk: '', properties: [], reportBuildPolicy: 'ALWAYS', results: [[path: 'allure-dir']]