Skip to content

Commit

Permalink
feat: Record unit test exception details (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang authored Nov 15, 2023
1 parent e901cc0 commit 7853f7b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat

/*
* Copyright [2021-present] [ahoo wang <[email protected]> (https://github.com/Ahoo-Wang)].
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -115,6 +117,9 @@ configure(libraryProjects) {

tasks.withType<Test> {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
}
jvmArgs =
listOf(
// fix logging missing code for JacocoPlugin
Expand Down Expand Up @@ -164,6 +169,14 @@ configure(publishProjects) {
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "LinYiPackages"
url = uri(project.properties["linyiPackageReleaseUrl"].toString())
credentials {
username = project.properties["linyiPackageUsername"]?.toString()
password = project.properties["linyiPackagePwd"]?.toString()
}
}
}
publications {
val publishName = if (isBom) "mavenBom" else "mavenLibrary"
Expand Down

0 comments on commit 7853f7b

Please sign in to comment.