Skip to main content

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:

  • --summary Print a summary in the terminal (enabled by default).
  • --suite-name Specify the name of the test suite (default: "Regression").
  • --whois Specify the name of the user who triggered the tests.
  • --verify-ssl Enable TLS certificate verification.
  • --slack-webhook Specify the webhook URL for Slack to send the report.
  • --teams-webhook Specify the webhook URL for Teams to send the report.
  • --include-failed Include a template of failed tests in the message.
  • --include-errors Include a template of error tests in the message.
  • --include-all-tests Include 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)

Source distribution for pytest-chic-report 2.0.3
File Size Uploaded
pytest_chic_report-2.0.3.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-chic-report 2.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.3 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

1 release file

1.0.0

1 release file

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page