https://pantsbuild.org/ logo
r

rhythmic-morning-87313

05/03/2022, 8:46 AM
Q25: How do I pass additional arguments to
pytest
without modifying
pants.toml
? (e.g., Just temporarily add
-s
to capture console outputs in the tests)
1
b

bitter-ability-32190

05/03/2022, 11:33 AM
Every config option has a CLI counterpart:
--pytest-args='-s'
. Additionally a few tools get "passthrough" options from their goal. Pytest is one of them. So you can also do
./pants test ... -- -s
🙌 1
🙏 1
4 Views