Старая версия. Вроде там тесты доделал что бы работали
This commit is contained in:
AidarKC
2025-12-28 18:39:13 +03:00
parent 809d897da6
commit 1526392ca5
10 changed files with 399 additions and 85 deletions
+37 -9
View File
@@ -51,6 +51,43 @@ dependencies {
implementation project(':shine-server-net-server') // Хэндлеры для обработки сетевых запросов
//
//
// // -------------------- ТЕСТЫ --------------------
// testImplementation platform('org.junit:junit-bom:5.11.4')
// testImplementation 'org.junit.jupiter:junit-jupiter'
// testImplementation 'org.junit.platform:junit-platform-suite-api'
// testRuntimeOnly 'org.junit.platform:junit-platform-suite-engine'
//
// testRuntimeOnly "org.junit.platform:junit-platform-launcher"
//
// // Suite (чтобы запустить классы в заданном порядке)
// testImplementation "org.junit.platform:junit-platform-suite:1.10.2"
//
// // Нужно, чтобы TestExecutionListener (RussianSummaryListener) корректно подхватывался
// testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
//}
// -------------------- ТЕСТЫ (JUnit 5) --------------------
// Один BOM на всё семейство JUnit (Jupiter + Platform модули)
testImplementation platform("org.junit:junit-bom:5.10.2")
// JUnit Jupiter (Test, BeforeAll, Assertions)
testImplementation "org.junit.jupiter:junit-jupiter"
// JUnit Platform Suite (@Suite, @SelectClasses)
testImplementation "org.junit.platform:junit-platform-suite-api"
testRuntimeOnly "org.junit.platform:junit-platform-suite-engine"
// Нужно для компиляции RussianSummaryListener (org.junit.platform.launcher.*)
// и чтобы JUnit мог подхватить listener при запуске
testImplementation "org.junit.platform:junit-platform-launcher"
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
}
test {
useJUnitPlatform()
}
application {
@@ -79,12 +116,3 @@ shadowJar {
)
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
showStandardStreams = true
}
}