Skip to main content

RobotFramework library that verifies installed libraries against requirements.txt

Project description

Requirements checking library for Robot Framework

Introduction

Robotframework-requirements is a library that verifies all packages in requirements.txt are installed and correct version. If missing or incorrect versions of packages are found, warning is shown

Usage

It should be enough to add library to Settings part of your suite and it will give warnings for incorrect requirements.

    *** Settings ***
    Library    RequirementsLibrary

In case you have requirements.txt in a different folder, you can give path to file.

    *** Settings ***
    Library    RequirementsLibrary    ${CURDIR}/../requirements.txt

It is also possible to run library check during test run.

    *** Settings ***
    Library    RequirementsLibrary    ${CURDIR}/../requirements.txt

    *** Test Cases ***
    Test Requirements
        Check Libraries
        Check Libraries    ${CURDIR}/../requirements.txt

Submitting issues

Bugs and enhancements are tracked in the issue tracker.

Before submitting a new issue, it is always a good idea to check is the same bug or enhancement already reported. If it is, please add your comments to the existing issue instead of creating a new one.

Coding style

Coding style is defined in .editorconfig file. Configure your editor to use it.

Code must pass checks from black, flake8, pylint and mypy. Markdown files must pass pymarkdown checker.

License

This library is released under MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-requirements-0.1.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page