Initial commit

This commit is contained in:
KamilM1205 2026-01-19 23:32:11 +04:00
commit 9795660e1f
43 changed files with 2757 additions and 0 deletions

33
scripts/run_tests.sh Executable file
View file

@ -0,0 +1,33 @@
#!/bin/bash
ENV_FILE="${1:-.env.test}"
echo "Loading environment from: $ENV_FILE"
# Экспорт переменных окружения
if [ -f "$ENV_FILE" ]; then
export $(grep -v '^#' "$ENV_FILE" | xargs)
else
echo "Warning: Environment file $ENV_FILE not found"
fi
mkdir allure-results
# Запуск тестов
echo "Running tests..."
pytest tests/ \
-v \
--alluredir=allure-results \
--junitxml=reports/junit.xml \
--log-level=DEBUG
# Генерация Allure отчета
if command -v allure &>/dev/null; then
echo "Generating Allure report..."
allure generate allure-results -o allure-report
echo "Allure report generated: allure-report/index.html"
echo "Serve allure results"
allure serve allure-results
else
echo "Allure CLI not found, skipping report generation"
fi