https://pantsbuild.org/ logo
#general
Title
# general
b

brash-baker-91190

02/03/2021, 10:27 PM
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

hundreds-father-404

02/03/2021, 10:31 PM
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

brash-baker-91190

02/03/2021, 10:38 PM
OK, thanks... I'll look into that
s

steep-breakfast-98857

02/03/2021, 11:23 PM
@hundreds-father-404 good to know...I'll add to the project list
h

hundreds-father-404

02/04/2021, 4:32 AM
s

steep-breakfast-98857

03/08/2021, 7:42 PM
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

brash-baker-91190

03/10/2021, 1:57 PM
whoa, nice!
h

hundreds-father-404

03/10/2021, 2:55 PM
You can try it out with 2.4.0.dev1, released yesterday. https://www.pantsbuild.org/v2.4/docs/upgrade-tips
8 Views