mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-22 14:12:48 +02:00
Print test output when ran through Gradle
This commit is contained in:
15
build.gradle
15
build.gradle
@@ -2,6 +2,9 @@ plugins {
|
|||||||
alias(libs.plugins.licenser) apply false
|
alias(libs.plugins.licenser) apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
|
|
||||||
defaultTasks 'licenseFormat', 'build'
|
defaultTasks 'licenseFormat', 'build'
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
@@ -15,10 +18,20 @@ subprojects {
|
|||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(Test).configureEach {
|
||||||
|
testLogging {
|
||||||
|
events = [TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED]
|
||||||
|
exceptionFormat = TestExceptionFormat.FULL
|
||||||
|
showExceptions = true
|
||||||
|
showCauses = true
|
||||||
|
showStackTraces = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from '../LICENSE.txt'
|
from '../LICENSE.txt'
|
||||||
}
|
}
|
||||||
|
@@ -1088,7 +1088,7 @@ public class CommandsIntegrationTest {
|
|||||||
.whenRunCommand("bulkupdate all update permission group.mod \"permission == group.moderator\"")
|
.whenRunCommand("bulkupdate all update permission group.mod \"permission == group.moderator\"")
|
||||||
.thenExpect("[LP] Running bulk update.");
|
.thenExpect("[LP] Running bulk update.");
|
||||||
|
|
||||||
assertTrue(completed.await(5, TimeUnit.SECONDS));
|
assertTrue(completed.await(15, TimeUnit.SECONDS), "operation did not complete in the allotted time");
|
||||||
|
|
||||||
Group adminGroup = plugin.getGroupManager().getIfLoaded("admin");
|
Group adminGroup = plugin.getGroupManager().getIfLoaded("admin");
|
||||||
assertNotNull(adminGroup);
|
assertNotNull(adminGroup);
|
||||||
|
Reference in New Issue
Block a user