Skip to main content

A framework to automatize your tests for data projects

Project description

Ploosh

Ploosh is yaml based framework used to automatized the testing process in data projects.

Get started

Go to the ploosh wiki to find the get started tutorial.

Steps

  1. Install ploosh package
  2. Run tests
  3. Analyse results

Install Ploosh

Install from PyPi package manager:

pip install ploosh

Run tests

ploosh --connections "connections.yml" --cases "test_cases" --export "JSON" --p_my_sql_server_password "mypassword"

Execution result

Test results

[
  {
    "name": "Test aggregated data",
    "state": "passed",
    "source": {
      "start": "2024-02-05T17:08:36Z",
      "end": "2024-02-05T17:08:36Z",
      "duration": 0.0032982
    },
    "expected": {
      "start": "2024-02-05T17:08:36Z",
      "end": "2024-02-05T17:08:36Z",
      "duration": 6.0933333333333335e-05
    },
    "compare": {
      "start": "2024-02-05T17:08:36Z",
      "end": "2024-02-05T17:08:36Z",
      "duration": 0.00046468333333333334
    }
  },
  {
    "name": "Test unvalid data",
    "state": "failed",
    "source": {
      "start": "2024-02-05T17:08:36Z",
      "end": "2024-02-05T17:08:36Z",
      "duration": 0.00178865
    },
    "expected": {
      "start": "2024-02-05T17:08:36Z",
      "end": "2024-02-05T17:08:36Z",
      "duration": 1.49e-05
    },
    "compare": {
      "start": "2024-02-05T17:08:36Z",
      "end": "2024-02-05T17:08:36Z",
      "duration": 1.8333333333333333e-07
    },
    "error": {
      "type": "count",
      "message": "The count in source dataset (55) is differant than the count the in expected dataset (0)"
    }
  }
]

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

ploosh-0.2.26.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

ploosh-0.2.26-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file ploosh-0.2.26.tar.gz.

File metadata

  • Download URL: ploosh-0.2.26.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ploosh-0.2.26.tar.gz
Algorithm Hash digest
SHA256 bcb5894cafce250bf2976fa42a9061ae65dbd38d28beb3ced6c1ffe4b9b3c2a7
MD5 e2c2c10f63bf12303aad49ab789e20d1
BLAKE2b-256 816f10dbd98de0288154fdbee9e1bfcae1186309bea08c98110679df46a83c4b

See more details on using hashes here.

File details

Details for the file ploosh-0.2.26-py3-none-any.whl.

File metadata

  • Download URL: ploosh-0.2.26-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ploosh-0.2.26-py3-none-any.whl
Algorithm Hash digest
SHA256 a7bedad3dc6cb4216b559073eb741c0260a3f75d6bc4ce89a7a628e63886c1aa
MD5 fd6c284e71e5c0e76a65f95347081fbc
BLAKE2b-256 159411ac64b01592dd13a12a994780e3c30e206973b780acb4df32bd1a7628ae

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