Reputation: 159
I'm running a jenkins freestyle build for all tests that contain pytest marker "jenkins_run" and after build run, i want allure report for my tests. what i tried is:
cd C:\Users\Administrator\Perforce\depot2\Cloud\TestAutomation\framework
python -m pytest --alluredir="reportpath" -rf -m jenkins_run
What's happening is that tests are running fine but allure is not able to pick test result from the specified path (attaching screenshot for reference).
Build command:
Post build actions for allure
Upvotes: 1
Views: 1239
Reputation: 187
i've struggled with this as well. for me, the issue was that the path in "--alluredir" parameter didn't match one of the allure plugin.
make sure the path of --alluredir is:
so, it should look something like:
--alluredir "path/of/jenkins/workspace/build_name/target/allure-result"
Upvotes: 2