{"library":"pytest-slack","title":"Pytest Slack Reporting Plugin","description":"pytest-slack is a pytest plugin designed to send test execution reports directly to Slack. While it provided basic reporting, development on this package ceased after version 2.3.1 (December 2020). The project has since been renamed and continued as `pytest-messenger`, which offers broader messaging support including Slack, DingTalk, and Telegram. Users seeking active development and new features should use `pytest-messenger` instead.","language":"python","status":"abandoned","last_verified":"Thu Apr 16","install":{"commands":["pip install pytest-slack"],"cli":null},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Save this in a test file (e.g., test_example.py)\ndef test_passing():\n    assert True\n\ndef test_failing():\n    assert False\n\n# To run and report to Slack:\n# Set your Slack webhook URL as an environment variable or pass directly\n# Example using environment variable:\n# export SLACK_HOOK='https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXX'\n# pytest --slack_hook=$SLACK_HOOK --slack_channel='#test-reports' --slack_username='Pytest Bot'\n# For local testing without environment variables (less secure for CI/CD):\n# pytest --slack_hook='https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXX' --slack_channel='#test-reports' --slack_username='Pytest Bot'","lang":"python","description":"The plugin is configured via command-line arguments when running `pytest`. It is recommended to use environment variables for sensitive information like Slack webhook URLs, especially in CI/CD environments. Create a test file, then run pytest with the necessary arguments to specify the Slack webhook, channel, and optionally a username.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}