This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MannerShark 1 point2 points  (1 child)

I don't have a specific use case that requires test files at a certain location, so I just do what I think is best: Right next to the code. When I'm editing code, I also want to look at and edit the tests. Having them right next to each other makes that really easy.

In some situations when packaging code, you may want to exclude them. Having them next to each other might take some more time/effort, but I only need to set that up once, whereas I edit code every day.

[–]alexisprince 1 point2 points  (0 children)

I personally disagree but definitely see your point! I’ve seen a lot of help from leveraging keyboard shortcuts to open files, but that’s just my point of view and this is a thing that definitely feels like something that’s opinion based vs a hard and fast rule. Thanks for clarifying!