Skip to content

fix(behave): add cleanup; fix invalid call from AllureHooks #860

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

Merged
merged 4 commits into from
May 6, 2025

Conversation

delatrie
Copy link
Contributor

@delatrie delatrie commented May 5, 2025

Context

At the beginning of the test run, Allure Behave registers a file logger that writes test results on disk. Due to a lack of cleanup, when Behave is run in-process, those loggers keep accumulating, which increases the number of written files exponentially.

The PR adds the cleanup for the AllureFormatter and AllureHooks, which fixes the issue.

Extra changes

  • fix invalid function call in AllureHooks.before_feature: it should call AllureListener.start_file, not AllureListener.start_feature

Fixes #629
Fixes #858

Checklist

@delatrie delatrie merged commit 3cd731a into master May 6, 2025
14 checks passed
@delatrie delatrie deleted the issue858-fix branch May 6, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:behave type:bug Pull requests that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exponential Growth in Allure Results with Each Iteration in runner.py Script hooks.py throws exception because of missing listener function
3 participants