pytest-chic-report
pytest-chic-report is a plugin for pytest that allows you to generate test result summaries in Markdown format and send them to Slack or Teams channels.
Installation
You can install pytest-chic-report via pip from PyPI.
pip install pytest-chic-report
Usage
Adding Command Line Options
The plugin adds several command line options to customize the reports:
--summaryPrint a summary in the terminal (enabled by default).--suite-nameSpecify the name of the test suite (default: "Regression").--whoisSpecify the name of the user who triggered the tests.--verify-sslEnable TLS certificate verification.--slack-webhookSpecify the webhook URL for Slack to send the report.--teams-webhookSpecify the webhook URL for Teams to send the report.--include-failedInclude a template of failed tests in the message.--include-errorsInclude a template of error tests in the message.--include-all-testsInclude a template of all tests in the message.
Example Usage:
pytest --slack-webhook https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX
Report Format
The report is generated in Markdown format and sent to the specified channel, featuring color-coded test results:
- green ✅ - all tests passed
- red ❌ - at least one test failed or error
- yellow ⏸️ - all tests skipped
Example Report
--------- Suite Summary ---------
Suite name: Regression
Passed amount: 7
Failed amount: 1
Skipped amount: 1
Xfailed amount: 4
Xpassed amount: 2
Total tests: 15
Total duration: 0.02 seconds
Successful tests: 47 %
From: Linux-6.8.0-47-generic-x86_64-with-glibc2.39
Show less
Sent by Anonymous | Today at 10:32 AM
Note: This does not work with the pytest-xdist plugin.
Release files for pytest-chic-report 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_chic_report-2.0.3.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_chic_report-2.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / pytest_chic_report-2.0.3.tar.gz
| Download URL | pytest_chic_report-2.0.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e9da0be7895ad7f4e16f7cab74ed7c1c989bfb4f969828568f3f4f3014ea65
|
|
BLAKE2b-256 checksum How to use checksums |
8c2a63e8544ee1147f09ee638b6641a2d75a6365ab06e0af1ef05f93ede26350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / pytest_chic_report-2.0.3-py3-none-any.whl
| Download URL | pytest_chic_report-2.0.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b28a77bc77d94a8f5c712b7ed689e2f697b245b36385f425f96803a6e157f75
|
|
BLAKE2b-256 checksum How to use checksums |
3b9bc1751cea0d84b7755822dabba449a3b20829cb21f6c3ed34d46414f196da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|