From the maven docs , we get that if direct dependency of our project A have scope test and its transitive dependency have scope test , then that transitive dependency won't be taken in test classpath of our project A
[Project A] -> [Direct Dependency of A , say X (scope test)] -> [Direct dependency of X , say Y (scope test)]
This makes me think of a scenario (possible or not , you decide)
If execution of some test in our project A depends on code of some test in project X , then maven will never be able to run the test of A as it will never take Y in test classpath.
In such scenario what should we do ? If you say such scenario cannot exist , why ?