pytest-slack | Pytest-slack report plugin | Chat library
kandi X-RAY | pytest-slack Summary
kandi X-RAY | pytest-slack Summary
Pytest-slack report plugin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pytest-slack
pytest-slack Key Features
pytest-slack Examples and Code Snippets
Community Discussions
Trending Discussions on pytest-slack
QUESTION
This is my first question on stack overflow. I'm trying to create a CI pipeline measuring the performance of our environment.
I've managed to create a locust file thats executing a given scenario. And right now I trying to integrate the pipeline with our slack channel. So I could see in an easy way if the scheduled job passed or failed - no need to log in to gitlab.
For regression tests I'm using pytest with pytest-slack plugin and it works fine. Unfortunately for locust I cannot find any available plugin.
The Gitlab - Slack integration is not working in the way I want because it's made for monitoring the pipelines for merges not for scheduled.
Thanks!
...ANSWER
Answered 2021-Aug-02 at 16:34Your question is a little hard to answer. Do you want help with Slack integration or with Locust?
In regards to Locust, you can make it give a non-zero exit code to "fail" the pipeline on certain conditions, and then do whatever you want with that using your pipeline.
An example (requires locust-plugins) is here: https://github.com/SvenskaSpel/locust-plugins/blob/5a57e10950c25025dc3e04785cb668d368271019/examples/cmd_line_examples.sh#L6
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pytest-slack
You can use pytest-slack like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page