Pytest-playwright deletes output folder

For some reason the pytest or pytest --output "foldername" deletes the folder where it was supposed to store output. Did not find any information about this behavior whatsoever

Upvotes: 3

Views: 268

Answers (1)

Javi Stolz
Javi Stolz

Reputation: 4753

It's an expected behavior. The output directory is cleaned at the start of the tests. See https://playwright.dev/docs/api/class-testproject#test-project-output-dir

Upvotes: 0

Related Questions