From 366f10d1286ed8e140e33b890e12daea11ce6198 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:27:12 +0000 Subject: [PATCH 1/4] build(deps): Bump commons-io:commons-io in /backend in the gradle group Bumps the gradle group in /backend with 1 update: commons-io:commons-io. Updates `commons-io:commons-io` from 2.16.1 to 2.17.0 --- updated-dependencies: - dependency-name: commons-io:commons-io dependency-type: direct:production dependency-group: gradle ... Signed-off-by: dependabot[bot] --- backend/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/build.gradle b/backend/build.gradle index 199494d4..0bc6a2c2 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -72,7 +72,7 @@ dependencies { implementation slf4jDependency // https://mvnrepository.com/artifact/commons-io/commons-io - implementation group: 'commons-io', name: 'commons-io', version: '2.16.1' + implementation group: 'commons-io', name: 'commons-io', version: '2.17.0' // https://mvnrepository.com/artifact/com.sparkjava/spark-core implementation group: 'com.sparkjava', name: 'spark-core', version: '2.9.4' From 34d7e95c2cb608cf19eb86354b4d41f2b0bd3631 Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Tue, 8 Oct 2024 15:33:55 +0200 Subject: [PATCH 2/4] ci: Gradle test stacktraces --- .github/workflows/codeql-backend.yml | 2 +- .github/workflows/test-backend.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-backend.yml b/.github/workflows/codeql-backend.yml index 58346f50..8afe4755 100644 --- a/.github/workflows/codeql-backend.yml +++ b/.github/workflows/codeql-backend.yml @@ -37,7 +37,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - arguments: test + arguments: test --stacktrace build-root-directory: backend/ - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 5319102d..82349602 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -29,5 +29,5 @@ jobs: - name: Test Gradle uses: gradle/gradle-build-action@v2 with: - arguments: test + arguments: test --stacktrace build-root-directory: backend/ From a0ef3df8dac1b4d7b92838b1c29fabfb57309905 Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Tue, 8 Oct 2024 15:37:09 +0200 Subject: [PATCH 3/4] build(backend): Test exception format --- .github/workflows/codeql-backend.yml | 2 +- .github/workflows/test-backend.yml | 2 +- backend/build.gradle | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-backend.yml b/.github/workflows/codeql-backend.yml index 8afe4755..58346f50 100644 --- a/.github/workflows/codeql-backend.yml +++ b/.github/workflows/codeql-backend.yml @@ -37,7 +37,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2 with: - arguments: test --stacktrace + arguments: test build-root-directory: backend/ - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 82349602..5319102d 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -29,5 +29,5 @@ jobs: - name: Test Gradle uses: gradle/gradle-build-action@v2 with: - arguments: test --stacktrace + arguments: test build-root-directory: backend/ diff --git a/backend/build.gradle b/backend/build.gradle index 0bc6a2c2..c1a4bef6 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -1,3 +1,5 @@ +import org.gradle.api.tasks.testing.logging.TestExceptionFormat + // --------------- Plugins --------------- plugins { @@ -139,6 +141,12 @@ String getDependencyVersion(Configuration config, String group, String name) { } } +test { + testLogging { + exceptionFormat = TestExceptionFormat.FULL + } +} + // --------------- Test Scenarios --------------- def testScenariosDir = file '../frontend/src/assets/examples' From 706c272749a5c9b7ff1b14523ae470afa7f27b11 Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Tue, 8 Oct 2024 15:42:06 +0200 Subject: [PATCH 4/4] test(backend): Change expected slf4j version --- .../org/fulib/webapp/projectzip/ProjectZipControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/test/java/org/fulib/webapp/projectzip/ProjectZipControllerTest.java b/backend/src/test/java/org/fulib/webapp/projectzip/ProjectZipControllerTest.java index 34a7ab73..ece677ce 100644 --- a/backend/src/test/java/org/fulib/webapp/projectzip/ProjectZipControllerTest.java +++ b/backend/src/test/java/org/fulib/webapp/projectzip/ProjectZipControllerTest.java @@ -57,7 +57,7 @@ public class ProjectZipControllerTest \tfulibScenarios group: 'org.fulib', name: 'fulibScenarios', version: '1.7.1' \t// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple - \tfulibScenarios group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.9' + \tfulibScenarios group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.13' \t// https://mvnrepository.com/artifact/org.fulib/fulibTools \ttestImplementation group: 'org.fulib', name: 'fulibTools', version: '1.6.0' @@ -69,7 +69,7 @@ public class ProjectZipControllerTest \ttestImplementation group: 'junit', name: 'junit', version: '4.13.2' \t// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple - \ttestImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.9' + \ttestImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.13' } generateScenarioSource {