java - gradle / intellij - shared test resource(s) -


i have gradle based project 8 subprojects. each of these has test code relies on folder number of .csv files content. i'd rather not copy folder test path of each subproject.

is there way tell gradle files in common location?

how intellij? tried indicating files 'test resource' haven't figured out how each sub-module find them (without resorting '../..' style notation)

i did providing path common files folder on sourcesets in build.gradle file:

sourcesets {     test {          resources {         srcdirs = ["src/test/resources", "src/main/resources/db"]     } } 

not sure if that's clean way that, me it's better copypasting same files on multiple locations.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -