rerunner-jupiter | Junit 5. Re-run failed JUnit tests immediately | Testing library

 by   artsok Java Version: 2.1.6 License: Non-SPDX

kandi X-RAY | rerunner-jupiter Summary

kandi X-RAY | rerunner-jupiter Summary

rerunner-jupiter is a Java library typically used in Testing, Docker applications. rerunner-jupiter has no bugs, it has no vulnerabilities, it has build file available and it has low support. However rerunner-jupiter has a Non-SPDX License. You can download it from GitHub, Maven.

Extension for Junit 5. Re-run failed JUnit tests immediately.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              rerunner-jupiter has a low active ecosystem.
              It has 124 star(s) with 24 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 20 open issues and 20 have been closed. On average issues are closed in 120 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of rerunner-jupiter is 2.1.6

            kandi-Quality Quality

              rerunner-jupiter has 0 bugs and 0 code smells.

            kandi-Security Security

              rerunner-jupiter has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rerunner-jupiter code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rerunner-jupiter has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              rerunner-jupiter releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 1242 lines of code, 106 functions and 14 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed rerunner-jupiter and discovered the below as its top functions. This is intended to give you an instant insight into rerunner-jupiter implemented functionality, and help decide if they suit your requirements.
            • Generate the test template invocation context
            • Returns the store for the test extension
            • Creates the name formatter for parameterizedIfExceptions test case
            • Checks if the test is annotated against the given extension
            • Returns true if the method has a valid signature
            • Replies if the given parameter is an aggregator
            • Called when a test execution exception is reached
            • Determines whether an exception is thrown
            • Check if the history is reachable
            • This method determines whether the test should be performed
            • Returns true if a non repeatable exception occured
            • Provide the execution context for the test template invocation
            • Handler for display name display name
            • Factory method for parameter resolution exception
            • Add an exception to the history
            • Returns the display name of the current execution
            • Gets additional extensions
            • Resolves the given parameter
            • Returns the index of first aggregator
            • Checks whether the test method is annotated
            • Provides a stream of Arguments
            • Called before test is executed
            • Creates a new ArgumentsProvider instance
            • Check if there are exceptions in the test
            • Returns an array of arguments that can be consumed by the given method
            • Check if extension should be executed
            Get all kandi verified functions for this library.

            rerunner-jupiter Key Features

            No Key Features are available at this moment for rerunner-jupiter.

            rerunner-jupiter Examples and Code Snippets

            No Code Snippets are available at this moment for rerunner-jupiter.

            Community Discussions

            QUESTION

            Re-run failed Junit 5 tests without reporting them as failed in test results
            Asked 2021-Sep-27 at 14:37

            I have set of JUnit5 tests which are run and reported with gradle by Jenkins. Some of them are unstable without my control (let's say "internal server error" from external service) and in random way. I can re-run them with gradle "test retry" plugin or by some other way but then initial failures are present in test summary and build is reported as unstable in Jenkins. But the need is to have "Success" build if failed tests are good after second try. Therefore does anybody know the way to re-run tests without reporting of initial failure in test results?

            My current idea is to try the following:

            • hide specific exceptions with TestExecutionExceptionHandler to have initial failure reported as success
            • implement @TestFactory to return failed tests dynamically for second run
            • implement ClassOrderer to run mentioned test factory as the last test and other complications. So looks pretty ugly. Therefore hope for existing of better solution.

            Update: Tried to use https://github.com/artsok/rerunner-jupiter library. Since I don't want to replace @Test annotations with custom @ReplaceIfExceptions... for all test methods in the project, I tried to override ...Extension class of the library and use it with "@ExtendWith" at class level of some basic test class. Then understood that replacing of @Test with @TestTemplate at method level is still needed for this approach to work. Therefore now I'm thinking about replacing of @Test with some my custom annotation to have ability quickly add to it anything like @ReplaceIfExceptions... or @TestTemplate or whatever would be needed.

            ...

            ANSWER

            Answered 2021-Sep-27 at 14:37

            Finally I used https://github.com/artsok/rerunner-jupiter library. It throws TestAbortedException before repetition of failed test and such failure is marked as ignored test. The result of build is marked as successful in this case. It was needed to replace @Test annotation to my custom annotation and add @TestTemplate to it, also I extended from Extension class of the library and applied my implementation of extension to class of my basic test using @ExtendWith. Looks like the only way to use the library without using of @ReplaceIfExceptions... annotation on each test method.

            Source https://stackoverflow.com/questions/69313206

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rerunner-jupiter

            You can download it from GitHub, Maven.
            You can use rerunner-jupiter like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the rerunner-jupiter component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/artsok/rerunner-jupiter.git

          • CLI

            gh repo clone artsok/rerunner-jupiter

          • sshUrl

            git@github.com:artsok/rerunner-jupiter.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link