Can pants manage external processes to coordinate ...
# general
m
Can pants manage external processes to coordinate setup and teardown steps for tests? I would like to be able to start/stop a local postgres instance when I run pants test ../..integration . Is that something I should just have tox/nox/ci coordinate?
h
There's an open issue for this: https://github.com/pantsbuild/pants/issues/17860
It's a relatively popular feature request, just hasn't been tackled yet
👍 1
c
We do this for Python today with pytest fixtues along the lines of
Copy code
@pytest.fixture(scope="session")
def docker_compose_file(pytestconfig):
    return os.path.join(
        str(pytestconfig.rootdir),
        "foo/bar/bax/docker-compose.yml",
    )
👍 1