Metadata-Version: 2.4
Name: robotframework-retryfailed
Version: 0.2.0
Summary: A listener to automatically retry tests or tasks based on flags.
Home-page: https://github.com/MarketSquare/robotframework-retryfailed
Author: René Rohner(Snooz82)
Author-email: snooz@posteo.de
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Testing :: Acceptance
Classifier: Framework :: Robot Framework
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: robotframework>=4.1
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# robotframework-retryfailed
A listener to automatically retry tests or tasks based on tags.


## Installation

Install with pip:

    pip install robotframework-retryfailed

## Usage

Add the listener to your robot execution, via command line arguments.
When your tests do fail and you have tagged them with `test:retry(2)`, it will retry the test 2 times. 
Retry can be also set globally as a parameter to the listener.

### Attaching Listener

Example:

    robot --listener RetryFailed <your robot suite>

    robot --listener RetryFailed:1 <robot suite>

Second one will by default retry once every failing test.

### Tagging Tests

Example:

    *** Test Cases ***
    Test Case
        [Tags]    test:retry(2)
        Log    This test will be retried 2 times if it fails

Tagging tasks by `task:retry(3)` should also work.
