Skip to main content

Vedro Unittest

Codecov PyPI PyPI - Downloads Python Version

vedro-unittest allows running unittest test cases within the Vedro framework. This plugin seamlessly integrates unittest test cases, converting them into Vedro scenarios to leverage the powerful features of the Vedro testing framework.

Installation

Quick

For a quick installation, you can use a plugin manager as follows:

$ vedro plugin install vedro-unittest

Manual

To install manually, follow these steps:

  1. Install the package using pip:
$ pip3 install vedro-unittest
  1. Next, activate the plugin in your vedro.cfg.py configuration file:
# ./vedro.cfg.py
import vedro
import vedro_unittest

class Config(vedro.Config):

    class Plugins(vedro.Config.Plugins):

        class VedroUnitTest(vedro_unittest.VedroUnitTest):
            enabled = True

Usage

To use the plugin, create your unittest test cases as usual:

# ./scenarios/test_base64.py
import unittest
from base64 import b64encode, b64decode

class TestBase64Encoding(unittest.TestCase):
    def test_encode_to_base64(self):
        result = b64encode(b"banana")
        self.assertEqual(result, b"YmFuYW5h")

    def test_decode_from_base64(self):
        result = b64decode(b"YmFuYW5h")
        self.assertEqual(result, b"banana")

Then run your tests using Vedro:

$ vedro run tests/

This will automatically detect and run your unittest test cases as Vedro scenarios, allowing you to take advantage of Vedro's rich feature set.

📘 Explore more: Learn how to gradually migrate your test suite, understand compatibility and limitations, and unlock the full potential of Vedro in the official unittest bridge documentation.

Metadata

Release files for vedro-unittest 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vedro-unittest 0.2.0
File Size Uploaded Provenance Actions
vedro_unittest-0.2.0.tar.gz 16.2 kB Without provenance Details for vedro_unittest-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vedro-unittest 0.2.0
File Interpreter ABI Platform Actions
vedro_unittest-0.2.0-py3-none-any.whl Python 3 none any Details for vedro_unittest-0.2.0-py3-none-any.whl

Total release size: 29.3 kB

Release files / vedro_unittest-0.2.0.tar.gz

Download URL vedro_unittest-0.2.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5282624ba6117541564fe2937b1d56958d2f33e71f17916ac77593d692bccd92
BLAKE2b-256 checksum
How to use checksums
20fe07050076c9da70b609f404ea2ee38702d6bf44b60f0cefaae9bdf61618bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / vedro_unittest-0.2.0-py3-none-any.whl

Download URL vedro_unittest-0.2.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
467b199ed2ba667c90fabee902ff315acd6f6121c267227eb6ca6afb7e356cde
BLAKE2b-256 checksum
How to use checksums
e48b12b0d24cd45595727d7dd0ea383f846bc3e5298d701420370396d7c94cfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Security for vedro-unittest 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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