Set up section #1794
Set up section
#1794
-
Is it possible to hide "Set up" section? It is generated by @BeforeAll tag, but there is nothing I want to show in the report. |
Beta Was this translation helpful? Give feedback.
Answered by
baev
Apr 8, 2024
Replies: 1 comment
-
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<>());
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
baev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use Allure Lifecycle Listener and remove unnecessary fixtures from the container files: