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:
parent
7fc607cc1c
commit
0500d237f9
|
@ -2,7 +2,10 @@ plugins {
|
||||||
id 'com.github.hauner.jarTest' version '1.0.1'
|
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 {
|
dependencies {
|
||||||
testCompile 'junit:junit:4.11'
|
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.cast.test')
|
||||||
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
testCompile project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test.environment 'TRAVIS', 1
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
sourceSets.test {
|
sourceSets.test {
|
||||||
java.srcDirs = ['source']
|
java.srcDirs = ['source']
|
||||||
resources.srcDirs = ['data']
|
resources.srcDirs = [
|
||||||
|
'data',
|
||||||
|
project(':com.ibm.wala.core.testdata').tasks.compileTestJava,
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
sourceSets.test {
|
sourceSets.test {
|
||||||
java.srcDirs = ['source']
|
java.srcDirs = ['source']
|
||||||
resources.srcDirs = ['testdata']
|
resources.srcDirs = [
|
||||||
|
'testdata',
|
||||||
|
project(':com.ibm.wala.cast.java.test.data').sourceSets.test.java,
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
Loading…
Reference in New Issue