Gradle test classes needed in another sub-project

In general, it’s a bit hacky to depend on a specific sourceSet of another subproject, don’t do that. You should define a configuration plus an artifact in :A:B:C and depend on that instead, see @Francois_Guillot’s post above.