I'm evaluating moving a Java+Scala repo from Gradle to Pants. I'm currently planning on doing this incrementally. Parts of the repo will build using Gradle. Other parts will build using Pants. And other parts will build using both when required.
We have some tests which read local files by relative file path references. When Gradle runs our tests, the current working directory is the sub-project's folder. But when Pants runs tests, it uses the repository root as the current working directory.
Is there any way to tell Pants to run the tests from the test's source root?