Skip to main content

pytest-squadcast

Pytest report plugin for Squadcast

Allow to send incident on Squadcast product.

installation

pip install pytest-squadcast

Add option to send message

pytest --squadcast

Create payload via hook

def pytest_squadcast_create_payload(session: Session) -> dict:
    reporter = session.config.pluginmanager.get_plugin('terminalreporter')
    return {"data": {
                        "message": "This will be the incident message",
                        "description": "This will be the incident description",
                        "tags": {
                            "passed": str(reporter.stats.get('passed', [])),
                            "tagname2": "Tag value#2",
                        },
                        "status": "trigger",
                    },
            "service": "0d2a4409625e05adbc1d81b3540ag89826bfa7cc",
            }

Dev

Change version

edit

pytest_squadcast/__init__.py

commit

git commit -m "v0.1.0"

tag

git tag v0.1.0

Build package

python -m build
twine upload dist/*

Release files for pytest-squadcast 0.1.4

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-squadcast 0.1.4
File Size Uploaded
pytest-squadcast-0.1.4.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-squadcast 0.1.4
File Interpreter ABI Platform
pytest_squadcast-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / pytest-squadcast-0.1.4.tar.gz

Download URL pytest-squadcast-0.1.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d45ea6f68239f6f36150f05d1ffd074b0694cfda78b52c0cdbeb83c4c4850829
BLAKE2b-256 checksum
How to use checksums
ef23a2377729d6d308ce5a25270e8407c48768e0ea3b6ba6a5d25b5d1405dbb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / pytest_squadcast-0.1.4-py3-none-any.whl

Download URL pytest_squadcast-0.1.4-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9f2bef14edeb8000203bfdd233fca33bf35093f82f7b59a3e069136e3f17edc
BLAKE2b-256 checksum
How to use checksums
56ba26e8516a1fd356cc35170b2067f8ad06954478ce9053823617056494ea47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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