Is there a way to make `pants test` depend on the...
# general
c
Is there a way to make
pants test
depend on the current package? Normally a
poetry install
would fix this or a
pip install .
but I'm not sure how to fix the module not found error here as I am unsure how to tell pants that my current module is a dependency of the tests
I've tried adding extra_requirements in
pants.toml
using:
Copy code
extra_requirements.add = [
  "PACKAGE_NAME>=MIN_VERSION,<MAX_VERSION",
]
r
Pants should be able to figure it out as long as the package being tested is living in same repo and your source roots are correctly configured. I'm trying to understand what's special about your situation.
Or do you mean something else by "current" package