{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"Parameterized testing decorator that works with nose, pytest, unittest, and other Python test frameworks to run the same test function across multiple input sets.","skillfed_tags":["test-utilities","data-driven-testing"],"use_cases":["Test the same logic across multiple input values (e.g., testing a math function with different numbers) without writing duplicate test methods.","Generate test cases from external data sources like JSON files or CSV data by passing a callable that loads and returns test parameters.","Test class behavior with different initial states by using @parameterized_class to instantiate a test class multiple times with different attributes.","Improve test readability and maintainability by centralizing test data in one place rather than scattering it across multiple test methods.","Integrate parameterized tests into existing unittest, pytest, or nose test suites without changing the test runner or project structure."],"what_it_does":"Parameterized is a decorator library that lets you write a single test function and run it against multiple sets of inputs, eliminating repetitive test code. It works across nose, pytest, unittest, and other test runners, generating separate test cases for each parameter set so they appear as distinct tests in your test output.\n\nThe package provides two main decorators: @parameterized for standalone test functions and @parameterized.expand for test methods within classes. You pass a list of tuples, param objects, or a callable that returns test cases, and the decorator automatically generates individual test cases. It has no runtime dependencies and installs with minimal friction, making it a lightweight addition to any test suite.","worth_installing":"Yes, if you use unittest, nose, or pytest 3 and want to reduce test boilerplate. The package is stable and has no dependencies. However, maintenance is dormant with the last release on 2023-03-27, so compatibility with future Python versions is uncertain. Check the compatibility table for your specific test framework and Python version before relying on it for new projects."},"id":"parameterized","links":{"html":"https://skillfed.io/packages/parameterized","md":"https://skillfed.io/packages/parameterized.md","pypi":"https://pypi.org/project/parameterized/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-03-27","license_spdx":null,"license_treatment":"permissive","name":"parameterized","python_support":"supports_current","summary":"Parameterized testing with any Python test framework"},"popularity":{"monthly_downloads":21140902,"position":1010,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
