{"id":25776840,"url":"https://github.com/artsok/rerunner-jupiter","last_synced_at":"2026-01-14T03:26:15.207Z","repository":{"id":39917463,"uuid":"103656510","full_name":"artsok/rerunner-jupiter","owner":"artsok","description":"Extension for Junit 5. Re-run failed JUnit tests immediately.","archived":false,"fork":false,"pushed_at":"2022-03-01T07:03:10.000Z","size":232,"stargazers_count":147,"open_issues_count":23,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-15T17:45:15.213Z","etag":null,"topics":["junit5","parameterizedtest","repeat","rerun","rerunner-jupiter"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artsok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-15T12:49:52.000Z","updated_at":"2025-05-12T10:40:49.000Z","dependencies_parsed_at":"2022-08-09T15:36:26.597Z","dependency_job_id":null,"html_url":"https://github.com/artsok/rerunner-jupiter","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/artsok/rerunner-jupiter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsok%2Frerunner-jupiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsok%2Frerunner-jupiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsok%2Frerunner-jupiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsok%2Frerunner-jupiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artsok","download_url":"https://codeload.github.com/artsok/rerunner-jupiter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsok%2Frerunner-jupiter/sbom","scorecard":{"id":209732,"data":{"date":"2025-08-11","repo":{"name":"github.com/artsok/rerunner-jupiter","commit":"361c11c12eafc5dcf28f2fb54c296dbdd60f8091"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 5/18 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T00:34:07.091Z","repository_id":39917463,"created_at":"2025-08-17T00:34:07.091Z","updated_at":"2025-08-17T00:34:07.091Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["junit5","parameterizedtest","repeat","rerun","rerunner-jupiter"],"created_at":"2025-02-27T06:01:32.100Z","updated_at":"2026-01-14T03:26:15.191Z","avatar_url":"https://github.com/artsok.png","language":"Java","funding_links":[],"categories":["测试"],"sub_categories":[],"readme":"# rerunner-jupiter\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.artsok/rerunner-jupiter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.artsok/rerunner-jupiter)\n[![Build Status](https://travis-ci.org/artsok/rerunner-jupiter.svg?branch=master)](https://travis-ci.org/artsok/rerunner-jupiter)\n![badge-jdk-8](https://img.shields.io/badge/jdk-8-yellow.svg \"JDK-8\")\n[![License badge](https://img.shields.io/badge/license-Apache2-green.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n*rerunner-jupiter* is a extension for Junit 5. \nRe-run failed JUnit-Jupiter tests immediately. Very useful when your UI/API tests don't stable. \nThis library is open source, released under the terms of [Apache 2.0 License].\n\n## How To Use\n\nIn order to include *rerunner-jupiter* in a Maven project, first add the following dependency to your `pom.xml` (Java 8 required):\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.artsok\u003c/groupId\u003e\n    \u003cartifactId\u003ererunner-jupiter\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.6\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n## Examples\n```java\n           /** \n            * Repeated three times if test failed.\n            * By default Exception.class will be handled in test\n            */\n           @RepeatedIfExceptionsTest(repeats = 3)\n           void reRunTest() throws IOException {\n               throw new IOException(\"Error in Test\");\n           }\n       \n       \n           /**\n            * Repeated two times if test failed. Set IOException.class that will be handled in test\n            * @throws IOException - error occurred\n            */\n           @RepeatedIfExceptionsTest(repeats = 2, exceptions = IOException.class)\n           void reRunTest2() throws IOException {\n               throw new IOException(\"Exception in I/O operation\");\n           }\n       \n       \n           /**\n            * Repeated ten times if test failed. Set IOException.class that will be handled in test\n            * Set formatter for test. Like behavior as at {@link org.junit.jupiter.api.RepeatedTest}\n            * @throws IOException - error occurred\n            */\n           @RepeatedIfExceptionsTest(repeats = 10, exceptions = IOException.class, \n           name = \"Rerun failed test. Attempt {currentRepetition} of {totalRepetitions}\")\n           void reRunTest3() throws IOException {\n                throw new IOException(\"Exception in I/O operation\");\n           }\n           \n           /**\n           *  Repeated three times if selenium test failed. Use selenium-jupiter extension.\n           */\n           @RepeatedIfExceptionsTest(repeats = 3, exceptions = NoSuchElementException.class)\n           void testWithChrome(ChromeDriver chrome)  {\n                chrome.get(\"http://yandex.ru\");\n                chrome.findElement(By.xpath(\"//span[@id='authors']\"));\n           }\n           \n           /**\n           * Repeated 100 times with minimum success four times, then disabled all remaining repeats.\n           * See image below how it works. Default exception is Exception.class\n           */\n           @DisplayName(\"Test Case Name\")\n           @RepeatedIfExceptionsTest(repeats = 100, minSuccess = 4)\n           void reRunTest4() {\n                if(random.nextInt() % 2 == 0) {\n                    throw new RuntimeException(\"Error in Test\");\n                }\n           }        \n           \n          /**\n           * By default total repeats = 1 and minimum success = 1.\n           * If the test failed by this way start to repeat it by one time with one minimum success.\n           *\n           * This example without exceptions.\n           */\n          @ParameterizedRepeatedIfExceptionsTest\n          @ValueSource(ints = {14, 15, 100, -10})\n          void successfulParameterizedTest(int argument) {\n              System.out.println(argument);\n          }\n      \n          /**\n           * By default total repeats = 1 and minimum success = 1.\n           * If the test failed by this way start to repeat it by one time with one minimum success.\n           * This example with display name but without exceptions\n           */\n          @DisplayName(\"Example of parameterized repeated without exception\")\n          @ParameterizedRepeatedIfExceptionsTest\n          @ValueSource(ints = {1, 2, 3, 1001})\n          void successfulParameterizedTestWithDisplayName(int argument) {\n              System.out.println(argument);\n          }\n      \n          /**\n           * By default total repeats = 1 and minimum success = 1.\n           * If the test failed by this way start to repeat it by one time with one minimum success.\n           *\n           * This example with display name but with exception. Exception depends on random number generation.\n           */\n          @DisplayName(\"Example of parameterized repeated with exception\")\n          @ParameterizedRepeatedIfExceptionsTest\n          @ValueSource(strings = {\"Hi\", \"Hello\", \"Bonjour\", \"Privet\"})\n          void errorParameterizedTestWithDisplayName(String argument) {\n              if (random.nextInt() % 2 == 0) {\n                  throw new RuntimeException(\"Exception \" + argument);\n              }\n          }\n      \n          /**\n           * By default total repeats = 1 and minimum success = 1.\n           * If the test failed by this way start to repeat it by one time with one minimum success.\n           *\n           * This example with display name, repeated display name, 10 repeats and 2 minimum success with exceptions.\n           * Exception depends on random number generation.\n           */\n          @ParameterizedRepeatedIfExceptionsTest(name = \"Argument was {0}\",\n                  repeatedName = \" (Repeat {currentRepetition} of {totalRepetitions})\",\n                  repeats = 10, exceptions = RuntimeException.class, minSuccess = 2)\n          @ValueSource(ints = {4, 5, 6, 7})\n          void errorParameterizedTestWithDisplayNameAndRepeatedName(int argument) {\n              if (random.nextInt() % 2 == 0) {\n                  throw new RuntimeException(\"Exception in Test \" + argument);\n              }\n          }\n      \n          /**\n           * By default total repeats = 1 and minimum success = 1.\n           * If the test failed by this way start to repeat it by one time with one minimum success.\n           *\n           * This example with display name, implicitly repeated display name, 4 repeats and 2 minimum success with exceptions.\n           * Exception depends on random number generation. Also use {@link MethodSource}\n           */\n          @DisplayName(\"Display name of container\")\n          @ParameterizedRepeatedIfExceptionsTest(name = \"Year {0} is a leap year.\",\n                  repeats = 4, exceptions = RuntimeException.class, minSuccess = 2)\n          @MethodSource(\"stringIntAndListProvider\")\n          void errorParameterizedTestWithMultiArgMethodSource(String str, int num, List\u003cString\u003e list)  {\n              assertEquals(5, str.length());\n              assertTrue(num \u003e= 1 \u0026\u0026 num \u003c= 2);\n              assertEquals(2, list.size());\n              if (random.nextInt() % 2 == 0) {\n                  throw new RuntimeException(\"Exception in Test\");\n              }\n          }\n      \n          static Stream\u003cArguments\u003e stringIntAndListProvider() {\n              return Stream.of(\n                      arguments(\"apple\", 1, Arrays.asList(\"a\", \"b\")),\n                      arguments(\"lemon\", 2, Arrays.asList(\"x\", \"y\"))\n              );\n          }\n          \n          \n          /**\n          *  it's often caused by some infrastructure problems: network congestion, garbage collection etc. \n          *  These problems usually pass after some time. Use suspend option\n          */\n          @RepeatedIfExceptionsTest(repeats = 3, exceptions = IOException.class, suspend = 5000L)\n          void reRunTestWithSuspendOption() throws IOException {\n              throw new IOException(\"Exception in I/O operation\");\n          }\n          \n          \n           /**\n           * Example with suspend option for Parameterized Test\n           * It matters, when you get some infrastructure problems and you want to run your tests through timeout.\n           *\n           * Set break to 5 seconds. If exception appeared for any arguments, repeating extension would runs tests with break.\n           * If one result failed and other passed, does not matter we would wait 5 seconds throught each arguments of the repeated tests.\n           *\n           */\n           @DisplayName(\"Example of parameterized repeated with exception\")\n           @ParameterizedRepeatedIfExceptionsTest(suspend = 5000L, minSuccess = 2, repeats = 3)\n           @ValueSource(strings = {\"Hi\", \"Hello\", \"Bonjour\", \"Privet\"})\n           void errorParameterizedTestWithSuspendOption(String argument) {\n                if (random.nextInt() % 2 == 0) {\n                    throw new RuntimeException(argument);\n                }\n           }\n           \n           /**\n           * Parameterized Test with the wrong exception.\n           * Test throws AssertionError.class, but we wait for Exception.class.\n           * In this case test with argument \"1\" runs ones without repeats.\n           * \n           * If you change 'exceptions = AssertionError.class', repeats will appear.\n           */\n           @ValueSource(ints = {1, 2})\n           @ParameterizedRepeatedIfExceptionsTest(repeats = 2, exceptions = Exception.class)\n           void testParameterizedRepeaterAssertionsFailure(int value) {\n                assertThat(value, equalTo(2));\n           }\n```\nMore examples you can find [here].\n\n\n## GitHub Star\nPush to the [star] if you like this JUnit 5 Extension. By this way, I will get feedback from you!\n\n\n[here]: https://github.com/artsok/rerunner-jupiter/blob/master/src/test/java/io/github/artsok/ReRunnerTest.java\n[star]: https://github.com/artsok/rerunner-jupiter/stargazers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartsok%2Frerunner-jupiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartsok%2Frerunner-jupiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartsok%2Frerunner-jupiter/lists"}