Skip to content

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

4 participants