Skip to main content

Robot Framework Molecule Plugin :: run molecule tests with Robot Framework as verifier

Project description

Use Robot Framework as a Molecule verifier.

Runs the verify playbook to install Robot Framework, extra libraries, and test data, then runs robot on the Molecule managed instances, showing the live output as tests are executed. Finally, runs an optional verify_fetch_report playbook to retrieve the generated Robot Framework report and logs.

Bundled verify and verify_fetch_report playbooks are included with the plugin. You can override these with custom playbooks if desired.

Documentation: https://molecule-robot-framework-plugin.readthedocs.io

Installation and Usage

Install molecule-robotframework:

pip install molecule molecule-robotframework

Create a new role with molecule using the robotframework verifier:

molecule init role <role_name> --verifier-name robotframework [--driver-name <name>]

Create a new scenario for an existing role or playbook:

molecule init scenario <scenario_name> --verifier-name robotframework [--driver-name <name>]

Copy the Robot Framework test data (.robot files) to a directory the Ansible controller. The default location is the directory molecule/<scenario_name>/tests.

Configure the desired robot options in the molecule.yml verifier section.

Execute molecule test on the role or scenario to run the verify playbook and run robot on the molecule instance.

Authors

Molecule Robot Framework Plugin was created by Michael Meffie based on code from Molecule.

License

The MIT License.

The logo is licensed under the Creative Commons NoDerivatives 4.0 License.

If you have some other use in mind, contact us.

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

molecule-robotframework-2.0.1.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

molecule_robotframework-2.0.1-py3-none-any.whl (25.2 kB view hashes)

Uploaded Python 3

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