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).
  • --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: passed
  • red: failed
  • yellow: not run

Example Report

--------- Suite Summary ---------
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 %
Platform: Linux-6.8.0-47-generic-x86_64-with-glibc2.39

TODO:

  • Implement xdist logic for parallel test execution.

Metadata

Release files for pytest-chic-report 2.0.1

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.1
File Size Uploaded
pytest_chic_report-2.0.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-chic-report 2.0.1
File Interpreter ABI Platform
pytest_chic_report-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / pytest_chic_report-2.0.1.tar.gz

Download URL pytest_chic_report-2.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9f401a1df03c816893050b450aacbe2a293d2de406478bf59c170e1f9962571b
BLAKE2b-256 checksum
How to use checksums
3408b12de1dcf69fe1d81376d6424132e1680c996b3133f3cd1e12b68100c696
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.1-py3-none-any.whl

Download URL pytest_chic_report-2.0.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ed17da6f3905de31a9f9fe3560e73e81e532d212d1f22e3419a2a9add555ad1
BLAKE2b-256 checksum
How to use checksums
1355814b70303b4317ab79356abc1b69f24908a40dbda4a07ba9e843d2129d4c
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

2.0.3

2 release files

2.0.2

2 release files

This release

2.0.1 This release

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