Skip to main content

Plugin for sending automation test data from Pytest to the initry

Project description

pytest-initry

Plugin for sending automation test data from Pytest to the initry.

Install and setup:

  1. Install:
    pip install pytest-initry
    
  2. Configure pytest.ini:
    [pytest]
    initry_host = localhost
    initry_port = 8000
    initry_grpc_port = 50051
    initry_batching = False
    initry_junit_xml_only = False
    
  3. CLI can also be used, but it's not the preferred method. The arguments will be the same as those mentioned for the pytest.ini config file.
    pytest --initry-host=localhost --initry-batching=True
    

Arguments:

initry_host

Initry API Backend hostname. Use the same value as INITRY_API_HOST for backend .env and NEXT_PUBLIC_INITRY_API_HOST for frontend .env.

Example: localhost, 192.168.1.2, etc.

initry_port

Initry API Backend port. Use the same value as INITRY_API_EXTERNAL_PORT for backend .env and NEXT_PUBLIC_INITRY_API_EXTERNAL_PORT for frontend .env.

Example: 8000, etc.

initry_grpc_port

Initry gRPC Backend port. Use the same value as INITRY_GRPC_EXTERNAL_PORT for backend .env.

Example: 50051, etc.

initry_batching

Batching mode: Use only if you have thousands of very fast unit tests. Data from the plugin to the Initry backend will be sent in batches.

Will not work with initry_junit_xml_only

Example: True, False.

initry_junit_xml_only

Real-time mode will be disabled, only the Pytest XML JUnit report will be sent at the end of the test run.

Will not work with initry_batching

Use together with pytest argument --junitxml=your_xml_file.name.xml

Example: True, False.

Examples:

pytest: Pytest will be executed in real-time mode.

pytest (with initry_batching=True): Pytest will be executed in real-time mode, but data will be sent to the server in batches to reduce network overhead. Real-time data will only display task finalized statuses without the 'running' state.

pytest --junitxml=test.xml: Pytest will be executed in real-time mode, and additional information will be collected from the generated JUnit XML file after the test run finalization.

pytest --junitxml=test.xml (with initry_junit_xml_only=True): Pytest will be executed without providing real-time data, and information will be gathered after the test run ends using the generated JUnit XML file.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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_initry-0.3.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

pytest_initry-0.3.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_initry-0.3.0.tar.gz.

File metadata

  • Download URL: pytest_initry-0.3.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.4 Linux/6.5.0-28-generic

File hashes

Hashes for pytest_initry-0.3.0.tar.gz
Algorithm Hash digest
SHA256 315c5ff8f9ade2ead6285c3a913fdaf4166ce46f2c415b8029c08ee1f364b102
MD5 d180a1ea5952dbb8eec2eab5cb67bc01
BLAKE2b-256 0bbf9bf5265d08e59d9dedb0f9f03cc89c97973a643499325706388d8ed0bb8e

See more details on using hashes here.

File details

Details for the file pytest_initry-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_initry-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.4 Linux/6.5.0-28-generic

File hashes

Hashes for pytest_initry-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b42ca9b018974de578192d4a712eaa0fac466518f5831c8283b1e7eb4d5c786d
MD5 404bc1d752ae62822c8e3c347343d40b
BLAKE2b-256 9f2e238b9abbb370999c122f922062ebbd5d56938a1bbd6bb4a88eeb5a4ec13c

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