retry-limiter

    3.3.0 • Public • Published

    retry-limiter Build Status

    Plugin for gemini and hermione to disable retries at runtime.

    How it works?

    Plugin sets retries and duration threshold. If it’s exceeded test will or will not be retried based on the result of shouldRetry function in config.

    For Gemini the rule is: if the test ends without result (nor equal:false nor equal:true) test will be retried if it’s attempts not exceeded.

    For Hermione the rule is: no retries.

    Install

    $ npm install retry-limiter

    Usage

    Configuration

    • enabled (optional) Boolean – enable/disable the plugin; default true.
    • limit (optional) Number – number in range from 0 to 1; if retries count to a total number of tests exceed the specified limit all next tests will be run without retries; default 1.

    Hermione only

    • setRetriesOnTestFail (optional) Number – set retries to the given value after the first test fail; default Infinity (retries will not be reset).
    • timeLimit (optional) Number - time in seconds; if test duration exceeds the specified limit all next tests will be run without retries; default Infinity.

    Gemini

    Add the plugin to your configuration file:

    module.exports = {
        system: {
            plugins: {
                'retry-limiter/gemini': {
                    limit: 0.3
                }
            }
        }
    };

    Hermione

    module.exports = {
        plugins: {
            'retry-limiter/hermione': {
                limit: 0.3,
                setRetriesOnTestFail: 1,
                timeLimit: 600
            }
        }
    };

    Install

    npm i retry-limiter

    DownloadsWeekly Downloads

    2

    Version

    3.3.0

    License

    MIT

    Unpacked Size

    12.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • dmitriy96
    • dudagod
    • egavr
    • j0tunn
    • kvmamich
    • miripiruni
    • oldskytree
    • rostik404
    • sipayrt