brash-baker-91190
02/01/2022, 7:54 PMpytest
configuration declaratively (or even non-declaratively!) for different subsets of tests? Something like having different extra-requirements (https://www.pantsbuild.org/docs/reference-pytest#section-extra-requirements) for unit tests vs. integration tests?salmon-planet-80683
02/01/2022, 7:56 PMbrash-baker-91190
02/01/2022, 7:57 PMhundreds-father-404
02/01/2022, 7:57 PMAlternatively, if you only want to install the plugin for certain tests, you can add the plugin to the dependencies field of your python_test / python_tests target. See Third-party dependencies for how to install Python dependencies. For example:https://www.pantsbuild.org/docs/python-test-goal#pytest-version-and-plugins Will that work for you?
hundreds-father-404
02/01/2022, 7:58 PMconftest.py
to dynamically change Pytest options etc on a per-test basis, iiucbrash-baker-91190
02/01/2022, 7:59 PM--no-cov
, but I'll keep this in mind for the future.hundreds-father-404
02/01/2022, 8:00 PM--no-cov
thing - is that to turn off coverage for all tests?brash-baker-91190
02/01/2022, 8:01 PMbrash-baker-91190
02/01/2022, 8:02 PM