https://pantsbuild.org/ logo
#development
Title
# development
w

witty-crayon-22786

12/21/2021, 8:19 PM
@happy-kitchen-89482, @enough-analyst-54434, @fast-nail-55400: thoughts on which convention to use for
src
vs
test
in a new JVM example repository? tests in the same directory as sources, or in a separate
tests
tree?
e

enough-analyst-54434

12/21/2021, 8:20 PM
Since we support both maybe meet people where they're at if there is some obvious winner out in the real world?
1
w

witty-crayon-22786

12/21/2021, 8:20 PM
oh yea: we support both. just don’t want to bother demonstrating both in the repo. just more noise than is necessary
e

enough-analyst-54434

12/21/2021, 8:21 PM
Yes, thus meet them where they are at.
It - almost by definition - has to be seperate dirs.
That convention goes waaaay back.
w

witty-crayon-22786

12/21/2021, 8:22 PM
it doesn’t need to be, since classpaths are isolated. but totally fine to stick with separate directories: i think that’s fairly consistent in all JVM tools.
e

enough-analyst-54434

12/21/2021, 8:23 PM
Ack - I totally get it doesn't need to be. Again, the only thing I was espousing was a principle. Meet them where they're at. If 90% are at that old convention - and the principle is agreed uopn - then there is happily no choice.
👍 2
w

witty-crayon-22786

12/21/2021, 8:24 PM
k
f

fast-nail-55400

12/21/2021, 8:34 PM
and to add to John’s point, meeting users where they are at currently helps to reduce confusion and provides something familiar to users coming to Pants.
h

happy-kitchen-89482

12/21/2021, 8:40 PM
Yep
I love having tests in the directory of the code they test, but no need to add confusion
We want people to adopt, so as John says, meeting them where they're at is key
w

witty-crayon-22786

12/21/2021, 8:42 PM
ok. i do plan on using some of the “familiarity budget” that that frees up to put all JVM languages under a single
{src,test}/jvm
sourceroot though.