Skip to content

Set up section #1794

Closed Answered by baev
kslysz asked this question in Questions & Support
May 18, 2022 · 1 comment
Discussion options

You must be logged in to vote

You can use Allure Lifecycle Listener and remove unnecessary fixtures from the container files:

class FixtureCleanup implements ContainerLifecycleListener {
   @Override
    public void beforeContainerWrite(final TestResultContainer container) {
        if (needToBeCleaned(container)) {
            container.setBefores(new ArrayList<>());
        }
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by baev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #1658 on October 26, 2022 14:12.