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

Начиная с релиза 1.18.2 не может быть создан Allure-отчет #178

Closed
keyclaim opened this issue Aug 23, 2022 · 1 comment · Fixed by #179
Assignees
Labels

Comments

@keyclaim
Copy link
Contributor

keyclaim commented Aug 23, 2022

В #168 сломали процессинг Allure-отчета
allureOutput.Finalize() должна выволняться в конце test-run так как удаляет current suite

func setupOutputs(r *Runner, params *RunWithTestingParams, t *testing.T) {
if params.OutputFunc != nil {
r.AddOutput(params.OutputFunc)
} else {
r.AddOutput(testingOutput.NewOutput(t))
}
if os.Getenv("GONKEY_ALLURE_DIR") != "" {
allureOutput := allure_report.NewOutput("Gonkey", os.Getenv("GONKEY_ALLURE_DIR"))
defer allureOutput.Finalize()
r.AddOutput(allureOutput)
}

func (a *Allure) EndSuite(end time.Time) error {
suite := a.GetCurrentSuite()
suite.SetEnd(end)
if suite.HasTests() {
if err := writeSuite(a.TargetDir, suite); err != nil {
return err
}
}
//remove first/current suite
a.Suites = a.Suites[1:]
return nil

@vitkarpenko vitkarpenko self-assigned this Aug 23, 2022
@keyclaim keyclaim changed the title Начиная с релиза 1.18.2Не может быть создан Allure-отчет Начиная с релиза 1.18.2 не может быть создан Allure-отчет Aug 24, 2022
@github-actions
Copy link

🚀 Issue was released in v1.18.3 🚀

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

Successfully merging a pull request may close this issue.

2 participants