mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-26 01:20:28 +00:00
47 lines
2.1 KiB
Groovy
47 lines
2.1 KiB
Groovy
|
apply from: "$rootDir/gradle/gradle_scripts/junit.gradle"
|
||
|
|
||
|
testing {
|
||
|
suites {
|
||
|
remoteTest(JvmTestSuite) {
|
||
|
useJUnitJupiter()
|
||
|
|
||
|
dependencies {
|
||
|
implementation project(':core')
|
||
|
implementation project(':beacon')
|
||
|
implementation project()
|
||
|
}
|
||
|
|
||
|
targets {
|
||
|
all {
|
||
|
testTask.configure {
|
||
|
workingDir = projectDir
|
||
|
|
||
|
jvmArgs += ["-Xmx2g"]
|
||
|
jvmArgs += jvmRunArgs
|
||
|
|
||
|
def attachDebugger = System.getProperty('idea.debugger.dispatch.addr') != null
|
||
|
def daemonCommand = attachDebugger ? ':app:runAttachedDebugger' : ':app:run'
|
||
|
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
|
||
|
systemProperty "io.xpipe.beacon.customDaemonCommand", "\"$rootDir\\gradlew.bat\" --console=plain $daemonCommand"
|
||
|
} else {
|
||
|
systemProperty "io.xpipe.beacon.customDaemonCommand", "\"$rootDir/gradlew\" --console=plain $daemonCommand"
|
||
|
}
|
||
|
systemProperty "io.xpipe.beacon.daemonArgs",
|
||
|
" -Dio.xpipe.beacon.port=21725" +
|
||
|
" -Dio.xpipe.app.dataDir=$projectDir/local/" +
|
||
|
" -Dio.xpipe.storage.persist=false" +
|
||
|
" -Dio.xpipe.app.writeSysOut=true" +
|
||
|
" -Dio.xpipe.app.writeLogs=false" +
|
||
|
" -Dio.xpipe.beacon.printMessages=true" +
|
||
|
" -Dio.xpipe.app.logLevel=trace"
|
||
|
|
||
|
systemProperty 'io.xpipe.beacon.printDaemonOutput', "true"
|
||
|
systemProperty "io.xpipe.beacon.port", "21725"
|
||
|
systemProperty "io.xpipe.beacon.launchDebugDaemon", "true"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|