History won't be generated
See original GitHub issueI am using: protractor, jasmine-allure-reporter, allure-commandline
I had the problem, that no history would be generated over multiple testsuite executions. After understanding the purpose of the history-feature (see https://stackoverflow.com/questions/47514696/what-exactly-are-history-and-retries-meant-to-mean-in-allure/47533045#47533045), more research and lots of trying out different things, I found this solution:
Before a new testsuite execution, the “history”-folder from “allure-report”-folder is supposed to be copied into the “allure-results”-folder. This way, allure will generate the right history from the saved “history”-folder.
My fix: Execute the test via .bat and copy the folder beforehand:
if [[ -e ./allure-report/history ]]; then
if [[ -e ./allure-results/history ]]; then
rm -rf ./allure-results/history
fi
mv ./allure-report/history ./allure-results/history
fi
protractor conf.js
allure generate -c
Is there a better way to do this? Shouldn’t this happen by default?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
yeah, thats how it works at the moment. BTW we are going to implement allure config that will allow you to specify history folder via commandline:
or using yaml configuration file
and then such config will be used during report generation
@johnmondeen please create a separate issue. Also provide sample project to reproduce the problem