From a950fb05b69d03ca91a9792286b49c0b6653dd6f Mon Sep 17 00:00:00 2001 From: Andrey Rusev Date: Thu, 12 Sep 2024 14:47:39 +0300 Subject: [PATCH] Updating tests --- .github/workflows/maven.yml | 2 +- zookeeper/stable/pom.xml | 37 ++++++++++++++++++++++++++++++++----- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 92417ef..6266737 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -32,7 +32,7 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -Dsurefire.rerunFailingTestsCount=2 -B package --file pom.xml # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph diff --git a/zookeeper/stable/pom.xml b/zookeeper/stable/pom.xml index a01a429..606bcd9 100644 --- a/zookeeper/stable/pom.xml +++ b/zookeeper/stable/pom.xml @@ -85,6 +85,8 @@ ${zookeeper.stable.version} ${zookeeper.stable.mishmash.io.patch} + 8 + 2.0.16 1.5.8 0.15.0 @@ -201,11 +203,13 @@ org.junit.jupiter junit-jupiter-api ${junit.version} + test org.junit.jupiter junit-jupiter-engine ${junit.version} + test org.junit.jupiter @@ -215,14 +219,15 @@ org.junit.platform - junit-platform-runner + junit-platform-suite-api ${junit-platform.version} test - org.junit.vintage - junit-vintage-engine - ${junit.version} + org.junit.platform + junit-platform-suite-engine + ${junit-platform.version} + test org.mockito @@ -434,7 +439,12 @@ org.junit.platform - junit-platform-runner + junit-platform-suite-api + test + + + org.junit.platform + junit-platform-suite-engine test @@ -643,6 +653,23 @@ + + org.apache.maven.plugins + maven-surefire-plugin + + + **/*Test.java + + ${surefire-forkcount} + false + -Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:"${settings.localRepository}"/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar + ${project.basedir} + + ${project.build.directory}/surefire + super:D/InIHSb7yEEbrWz8b9l71RjZJU= + + + org.apache.maven.plugins maven-source-plugin