avast / pytest-docker

Docker-based integration tests
MIT License
423 stars 71 forks source link

Executing multiple commands for `docker_setup` and `docker_cleanup` #98

Closed jacklinke closed 8 months ago

jacklinke commented 11 months ago

Would there be interest in ability to easily run multiple commands on docker_setup and docker_cleanup, while maintaining backward compatibility? This would be trivial to implement in the plugin.

My use-case: want to run some additional commands on a container during setup, and I can imagine scenarios where running additional commands at cleanup would be helpful. Overriding these functions in a project seems like a lot more work for end-users than simply supplying all of the commands they want to execute.

n1ngu commented 11 months ago

Pretty much related https://github.com/avast/pytest-docker/issues/93#issuecomment-1604473059

augi commented 8 months ago

Resolved by #99