Is there a way to supply a `pytest.ini` when runni...
# general
b
Is there a way to supply a
pytest.ini
when running
./pants test ::
? Or, failing that, a way to specify custom markers to the pytest run?
h
There is currently no support for
pytest.ini
, but for no particular reason...only hasn't been implemented cc @steep-breakfast-98857 this could be a great project and very useful 🙂 -- For now, you could work around it by setting
[pytest].args
in
pants.toml
, and/or using conftest files
b
OK, thanks... I'll look into that
s
@hundreds-father-404 good to know...I'll add to the project list
h
s
Hi Chris - implemented now! Pytest has some rules about how it finds it (see the docs: https://docs.pytest.org/en/stable/customize.html), but support has been added.
🚀 1
b
whoa, nice!
h
You can try it out with 2.4.0.dev1, released yesterday. https://www.pantsbuild.org/v2.4/docs/upgrade-tips