done
fi
if [ -z "$LAUNCHER" ]; then
- LAUNCHER="python3 -m pytest -q";
+ if [ -d "allure-report" ]; then
+ LAUNCHER="python3 -m pytest --alluredir=allure-report/ -q"
+ else
+ LAUNCHER="python3 -m pytest -q"
+ fi
fi
for script in $scriptlist; do
commands =
gitlint --config ../.gitlint
+
+[testenv:allure-report-init]
+basepython = python3
+deps = allure-pytest>=2.10.0
+# allure is under Apache License 2.0
+whitelist_externals =
+ mkdir
+ sed
+commands =
+ mkdir -p allure-report
+ sed -i_ '$a\allure-pytest # Apache License 2.0' ./test-requirements.txt
+
+
+[testenv:allure-report-serve]
+basepython = python3
+whitelist_externals =
+ allure
+commands =
+ allure serve "allure-report"