2018-05-23 21:44:29 +00:00
|
|
|
plugins {
|
|
|
|
id 'com.github.hauner.jarTest'
|
|
|
|
}
|
2017-12-21 15:09:27 +00:00
|
|
|
|
2018-07-08 23:17:06 +00:00
|
|
|
sourceSets.test.java.srcDirs = ['harness-src']
|
2017-11-27 08:34:48 +00:00
|
|
|
|
|
|
|
dependencies {
|
2018-01-11 03:56:27 +00:00
|
|
|
testCompile(
|
2018-05-21 21:37:54 +00:00
|
|
|
'junit:junit:4.12',
|
2018-01-11 03:56:27 +00:00
|
|
|
project(':com.ibm.wala.cast'),
|
|
|
|
project(':com.ibm.wala.cast.js'),
|
|
|
|
project(':com.ibm.wala.cast.js.rhino'),
|
|
|
|
project(':com.ibm.wala.core'),
|
|
|
|
project(':com.ibm.wala.shrike'),
|
|
|
|
project(':com.ibm.wala.util'),
|
|
|
|
project(configuration: 'testArchives', path: ':com.ibm.wala.cast.js.test'),
|
|
|
|
project(configuration: 'testArchives', path: ':com.ibm.wala.cast.test'),
|
|
|
|
project(configuration: 'testArchives', path: ':com.ibm.wala.core.tests'),
|
|
|
|
)
|
2017-11-28 01:45:05 +00:00
|
|
|
}
|
2017-12-26 23:00:54 +00:00
|
|
|
|
2018-07-08 23:17:06 +00:00
|
|
|
processTestResources {
|
|
|
|
def data = project(':com.ibm.wala.cast.js.test.data')
|
|
|
|
dependsOn data.processTestResources
|
|
|
|
from data.sourceSets.test.resources
|
|
|
|
}
|
|
|
|
|
2018-01-17 23:37:16 +00:00
|
|
|
test {
|
|
|
|
environment 'TRAVIS', 1
|
|
|
|
maxHeapSize = '800M'
|
2018-05-28 18:29:08 +00:00
|
|
|
|
|
|
|
if (gradle.startParameter.offline)
|
|
|
|
exclude '**/FieldBasedJQueryTest.class'
|
2018-01-17 23:37:16 +00:00
|
|
|
}
|
2018-01-28 21:27:35 +00:00
|
|
|
|
2018-08-11 17:36:22 +00:00
|
|
|
task cleanTestExtras(type: Delete) {
|
2018-01-28 21:27:35 +00:00
|
|
|
delete 'actual.dump'
|
|
|
|
delete 'expected.dump'
|
|
|
|
}
|
|
|
|
|
2018-08-11 17:36:22 +00:00
|
|
|
cleanTest.dependsOn cleanTestExtras
|