Skip to main content

Pytest report plugin for Squadcast

Project description

pytest-zulip

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, exitstatus: Union[int, ExitCode]) -> 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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-squadcast-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

pytest_squadcast-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest-squadcast-0.1.0.tar.gz.

File metadata

  • Download URL: pytest-squadcast-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytest-squadcast-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aacdf6b2e1264ad23d4150af4dbb689cdc6e6aaa2963b7e12887062c894bf682
MD5 c46c5a020402d8410edd09dd2b62f4b2
BLAKE2b-256 dac64625e520d30c6d36d78190efae0aae6a971ea30d86f0ef206fa824bc9d69

See more details on using hashes here.

File details

Details for the file pytest_squadcast-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_squadcast-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pytest_squadcast-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 445bf6062660b5f329aeb4c30a47cad42500d03695db619cc2acb5ecb464515d
MD5 099043b5bb6736acaddecdb9c684ef5e
BLAKE2b-256 0b25297d5adef50d87c00fbbd04511df764d988fa9f8744d730afd6ca4bf19b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page