Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dunossauro/report-portal-hook-plugin
report portal plugin to hook plug
https://github.com/dunossauro/report-portal-hook-plugin
bdd behave hook-plug python
Last synced: 13 days ago
JSON representation
report portal plugin to hook plug
- Host: GitHub
- URL: https://github.com/dunossauro/report-portal-hook-plugin
- Owner: dunossauro
- Created: 2019-08-08T16:22:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T21:14:50.000Z (over 5 years ago)
- Last Synced: 2024-11-14T17:51:33.490Z (2 months ago)
- Topics: bdd, behave, hook-plug, python
- Language: Python
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hook plug plugin to report portal.
hp_report_portal is a [hook_plug](https://github.com/dunossauro/hook_plug) plugin based to report [Behave](https://github.com/behave/behave) executions on [Report Portal](https://reportportal.io).
## installation
```
pip install hp-report-portal
```## Usage
To use this plugin you need to create the variables in the behave configuration file. You can also pass the parameters using the `-D` flag.
#### behave.ini file
```
[behave.userdata]
rp_project =
rp_endpoint =
rp_launch =
rp_token =
```> An important thing to say is that not necessarily behave will use `behave.ini`, in some cases it may be in `tox.ini`
#### environment.py file
Simple example using only `all` hooks. But should be used on all hooks
```python
from hook_plug import environment_hooks, register_hooks
from hp_report_portal import ReportPortalPluginregister_hooks(ReportPortalPlugin())
def before_all(context):
environment_hooks.hook.before_all(context=context)def after_all(context):
environment_hooks.hook.after_all(context=context)
```