Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Предупреждать в случае если allure-отчет не создается #146

Open
keyclaim opened this issue Apr 21, 2022 · 0 comments

Comments

@keyclaim
Copy link
Contributor

keyclaim commented Apr 21, 2022

Если в энвах нет GONKEY_ALLURE_DIR то отчет не создается. Необходимо сообщать об этом при старте теста.

if os.Getenv("GONKEY_ALLURE_DIR") != "" {
allureOutput := allure_report.NewOutput("Gonkey", os.Getenv("GONKEY_ALLURE_DIR"))
defer allureOutput.Finalize()
r.AddOutput(allureOutput)
}

Также транслировать предупреждение если папку создать не удалось
if err := os.Mkdir(resultsDir, 0777); err != nil {
// likely dir is already exists
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant