mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE] Струтрука gradle проекта для тестов.
This commit is contained in:
parent
6b663c481c
commit
f1e6830a72
5 changed files with 19 additions and 1 deletions
6
LauncherTest/build.gradle
Normal file
6
LauncherTest/build.gradle
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
apply from: '../test_support.gradle'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':LaunchServer')
|
||||||
|
}
|
||||||
|
|
0
LauncherTest/src/main/java/Empty.java
Normal file
0
LauncherTest/src/main/java/Empty.java
Normal file
0
LauncherTest/src/test/java/Empty.java
Normal file
0
LauncherTest/src/test/java/Empty.java
Normal file
|
@ -1,7 +1,8 @@
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly project(':LaunchServer')
|
compileOnly project(':LaunchServer')
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
11
test_support.gradle
Normal file
11
test_support.gradle
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
dependencies {
|
||||||
|
testCompile 'org.junit.jupiter:junit-jupiter:5.4.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
testLogging {
|
||||||
|
events "passed", "skipped", "failed"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue