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

Disable automatic cleanup #647

Open
kasperg opened this issue May 15, 2023 · 1 comment
Open

Disable automatic cleanup #647

kasperg opened this issue May 15, 2023 · 1 comment

Comments

@kasperg
Copy link

kasperg commented May 15, 2023

As I understand it RawDrupalContext will automatic clean up any created nodes, users, terms etc. after running a scenario.

This can make it somewhat tricky to look into a failing test. You are only provided with the output from the failing step and whatever other extensions have provided (screenshots, HTML output).

Is there a way to disable this automatic cleanup either temporarily (using a command line argument or the like) or through configuration?

If not: Would you consider a contribution for such an addition?

@Kingdutch
Copy link

An issue for a solution to this was opened in #316 but that would need to be implemented.

In the meantime within Open Social I've implemented a trait and we create our own version of the DrupalExtension classes that includes the trait even if we don't need to add anything else to it, rather than using the DrupalExtension classes directly.

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

No branches or pull requests

2 participants