abundant-finland-56154
05/07/2021, 2:55 AM/pants.toml
, /src/python/project_a
,/src/python/project_b
. What I'd like to do is have different configurations for those projects for various tools, and ideally a "fallback" default. From what I can tell a single toml file must specify all of the config paths for various tools, based on Config files must be explicitly declared
in the docs - so I was wondering if instead it might make sense to just use multiple tomls instead?hundreds-father-404
05/07/2021, 3:21 AMhundreds-father-404
05/07/2021, 3:22 AMabundant-finland-56154
05/07/2021, 3:24 AMabundant-finland-56154
05/07/2021, 3:24 AMhundreds-father-404
05/07/2021, 3:29 AM./pants help-advanced pytest
for example :)
Note that all Pants is doing is detecting the relevant config files and then putting them in the chroot. It's then up to Pytest to do with that what it wants - for Pytest, config files must be in a parent directory of your tests and can't be in an unrelated folder, for example.
That sounds consistent with what you're hoping for though. Because Pants runs each test file as a separate process, you can have dirA/pytest.ini and dirB/pytest.ini and be sure that Pytest is using the appropriate config files when running ./pants test ::
:)hundreds-father-404
05/07/2021, 3:33 AMabundant-finland-56154
05/07/2021, 3:40 AM