New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pytest-slack

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-slack

Pytest to Slack reporting plugin

pipPyPI
Version
2.3.1
Maintainers
3

================= pytest-slack

.. image:: https://img.shields.io/pypi/v/pytest-slack.svg :target: https://pypi.python.org/pypi/pytest-slack

.. image:: https://img.shields.io/travis/pytest-dev/pytest-slack.svg :target: https://travis-ci.org/pytest-dev/pytest-slack

.. image:: https://codecov.io/gh/pytest-dev/pytest-slack/branch/master/graph/badge.svg :target: https://codecov.io/gh/pytest-dev/pytest-slack

.. image:: https://readthedocs.org/projects/pytest-slack/badge/?version=latest :target: https://pytest-slack.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://pyup.io/repos/github/pytest-dev/pytest-slack/shield.svg :target: https://pyup.io/repos/github/pytest-dev/pytest-slack/ :alt: Updates

Pytest to Slack reporting plugin

Requirements

  • Requests

Installation

You can install "pytest-slack" via pip_::

$ pip install pytest-slack

Usage

  • Setup slack hook_
  • Use this plugin by running pytest normally and use the following options to customize report:

slack: --slack_channel=SLACK_CHANNEL Set the channel name to report --slack_hook=SLACK_HOOK Used for reporting to slack --slack_report_link=SLACK_REPORT_LINK Set the report link --slack_username=SLACK_USERNAME Set the reporter name --slack_timeout=SLACK_TIMEOUT [DEFAULT = 10s ] Set the timeout for sending results in seconds --slack_success_emoji=SLACK_SUCCESS_EMOJI [default = :thumbsup:] Set emoji for a successful run --slack_failed_emoji=SLACK_FAILED_EMOJI [default = :thumbsdown:] Set emoji for a failed run --slack_success_icon=SLACK_SUCCESS_ICON [default = None] Set icon (a url) for a successful run. Overrides SLACK_SUCCESS_EMOJI --slack_failed_icon=SLACK_FAILED_ICON [default = None] Set icon (a url) for a failed run. Overrides SLACK_FAILED_EMOJI

Example

$ pytest tests --slack_hook=https://hooks.slack.com/services/... --slack_channel=test_report_channel --slack_username="Regression testing results"

All kind of problems:

.. image:: https://raw.githubusercontent.com/pytest-dev/pytest-slack/master/img/failed.png

Passed test:

.. image:: https://raw.githubusercontent.com/pytest-dev/pytest-slack/master/img/success.png

$ pytest tests --slack_hook=https://hooks.slack.com/services/... --slack_channel=test_report_channel --slack_username="Regression testing results" --slack_report_link=http://any_address

Passed test with link:

.. image:: https://raw.githubusercontent.com/pytest-dev/pytest-slack/master/img/success_link.png

Issues

If you encounter any problems, please file an issue_ along with a detailed description.

Credits

[ ~ Dependencies scanned by PyUp.io ~ ]

.. _slack hook: https://get.slack.help/hc/en-us/articles/115005265063-Incoming-WebHooks-for-Slack .. _file an issue: https://github.com/pytest-dev/pytest-slack/issues .. _pytest: https://github.com/pytest-dev/pytest .. _tox: https://tox.readthedocs.io/en/latest/ .. _pip: https://pypi.python.org/pypi/pip/

======= History

1.0.1 (2019-04-18)

  • First release on PyPI.

2.1.2 (2020-02-10)

  • Stable release.

======= Credits

Development Lead

Contributors

  • repsejnworb <https://github.com/repsejnworb>_
  • lithammer <https://github.com/lithammer>_
  • mstevens <https://github.com/mstevens>_
  • AWegnerGitHub <https://github.com/AWegnerGitHub>_

Keywords

pytest

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts