You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I execute the tests with python + poetry + pytest-bdd inside Jenkins with cmd: python -m poetry run pytest -ra -q --cucumber-json=test.json --alluredir allure-dir (same cmd as on my local machine)
The output is stored inside allure-dir
The plugin executes: allure generate -c -o allure-dir allure-report
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']]
The text was updated successfully, but these errors were encountered:
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
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']]
The text was updated successfully, but these errors were encountered: