Add various test resource directories

Unfortunately these tests are still not finding their resources
properly at test run time.  I don't know why.  It seems to have
something to do with how the tests instantiate and use class loaders.
I'm probably going to need expert help with this.
This commit is contained in:
Ben Liblit 2017-12-26 17:00:54 -06:00
parent 7fc607cc1c
commit 0500d237f9
3 changed files with 14 additions and 3 deletions

View File

@ -2,7 +2,10 @@ plugins {
id 'com.github.hauner.jarTest' version '1.0.1'
}
sourceSets.test.java.srcDirs = ['harness-src']
sourceSets.test {
java.srcDirs = ['harness-src']
resources.srcDirs = [project(':com.ibm.wala.cast.js.test.data').file('examples-src')]
}
dependencies {
testCompile 'junit:junit:4.11'
@ -16,3 +19,5 @@ dependencies {
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.cast.test')
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
}
test.environment 'TRAVIS', 1

View File

@ -1,6 +1,9 @@
sourceSets.test {
java.srcDirs = ['source']
resources.srcDirs = ['data']
resources.srcDirs = [
'data',
project(':com.ibm.wala.core.testdata').tasks.compileTestJava,
]
}
dependencies {

View File

@ -1,6 +1,9 @@
sourceSets.test {
java.srcDirs = ['source']
resources.srcDirs = ['testdata']
resources.srcDirs = [
'testdata',
project(':com.ibm.wala.cast.java.test.data').sourceSets.test.java,
]
}
dependencies {