Question about fixture_batch_size in conftest.py #269
-
No much experience on pytest yet, but I'm just curious about the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Waschenbacher This is a custom marker form us. When you run pytest you can use the optional argument The naming here is prob a bit counterintuitive as a batch recommendation with 3 is likely slower than with 1. But the logic of marking the variant with We don't use the |
Beta Was this translation helpful? Give feedback.
Hey @Waschenbacher
This is a custom marker form us. When you run pytest you can use the optional argument
--fast
. This then will skip all tests and fixture variants that have been marked withmark.slow
. The logic implementing that is in conftest.pyThe naming here is prob a bit counterintuitive as a batch recommendation with 3 is likely slower than with 1. But the logic of marking the variant with
batch_size=1
asslow
stems from us not wanting to test both batch sizes 1 and 3 if the user wants to do--fast
, so we decided in that case just 3 will be done asbatch_size > 1
is the more complex use case that should be covered.We don't use the
--fast
mechanism much anyway tbh as we mostly do …