You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,16 @@ working directory. You can specify a different file via the
181
181
See `Configuration Options`_ for more information on using configuration
182
182
files to modify pytest behavior.
183
183
184
+
Remove volumes after tests
185
+
--------------------------
186
+
There is another configuration option that will delete the volumes of containers after running.
187
+
188
+
.. code-block:: sh
189
+
190
+
pytest --docker-compose-remove-volumes
191
+
192
+
This option will be ignored if the plugin is not used. Again, this option can also be added to the pytest.ini file.
193
+
184
194
For more examples on how to use this plugin look at the testing suite of this plugin itself! It will give you some examples for configuring pytest.ini and how to use the different fixtures to run docker containers.
0 commit comments