A pytest-bdd plugin for generating useful and informative BDD test reports
Project description
The pytest-bdd-report plugin is a useful extension for the pytest-bdd library that allows you to generate useful and informative reports for BDD (Behavior-Driven Development) tests developed using the pytest-bdd framework. This plugin facilitates the generation of clear and effective HTML reports, providing a comprehensible view of BDD test executions within the project.
For more, check out the Documentation
This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.
Features
Detailed BDD Reports: The pytest-bdd-report plugin enables the generation of detailed reports for BDD tests executed using pytest-bdd. These reports clearly show the executed steps, tested scenarios, and obtained results.
HTML Format: The generated reports are presented in an intuitive and interactive HTML format. This allows developers, testers, and other team members to easily view the status of BDD tests.
Easy Installation: Installing the plugin is simple and fast. You can install it using the command pip install pytest-bdd-report.
Requirements
Jinja2
pytest
pytest-bdd
Installation
Ensure that you have pytest and pytest-bdd installed in your development environment.
Open a terminal window.
Execute the following command to install the pytest-bdd-report plugin via pip from PyPI
$ pip install pytest-bdd-report
Usage
Once installed, you can generate BDD reports in an HTML file using the following command:
$ pytest --bdd-report="report.html"
Run tests
To run tests:
Create a virtual environment
Install the required packages:
$ pip install -r requirements.txt
Install the plugin locally:
$ pip install -e .
Run the unit tests:
$ python -m pytest
Run the UI tests with Robot Framework:
$ cd tests/ui_testing $ ./execute_all_ui_tests.sh
Contributing
Contributions are very welcome. Tests can be run with pytest as shown.
License
Distributed under the terms of the MIT license, “pytest-bdd-report” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_bdd_report-1.0.3b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7238b16acceb3b4694b93ada5c5b4fcc23a96800a4878df7c783ce020356af81 |
|
MD5 | a855970b8e253ead993b9473b91dbee8 |
|
BLAKE2b-256 | b39fd8454c8270015e1fa29048522df282fdf838a5f515ae0c7d8b6dce574030 |
Hashes for pytest_bdd_report-1.0.3b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ea9a6df66c9bfc9f2a3f5fe58d8f4fd0179535c023110686dd5bb7db7d3675 |
|
MD5 | 36c84e2455b74a2a2f0ab19f5f6c2c12 |
|
BLAKE2b-256 | 0834b0ebc98617379e1310e8d89babf42a7839026e306e963407302d66d13590 |