{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"Detects test pollution\u2014failures caused by side effects from other tests\u2014by bisecting your test suite to isolate the pair of tests that interact.","skillfed_tags":["pytest-plugin","test-debugging","flaky-tests"],"use_cases":["Isolate the root cause of a flaky test that fails in CI but passes locally or when run in isolation.","Debug test suites where pytest-randomly or pytest-xdist expose hidden test interdependencies.","Fuzz a test suite to discover latent pollution before it causes production issues.","Identify global state mutations (module-level variables, mocked objects, database state) left behind by tests.","Refactor or split a monolithic test file by finding which tests depend on execution order."],"what_it_does":"detect-test-pollution is a command-line tool that finds which test is polluting another test when test order matters. Test pollution occurs when a test fails mysteriously in one order but passes when run alone\u2014a common flake symptom. The tool works by bisecting your test suite: given a failing test, it repeatedly runs subsets of your other tests alongside it to narrow down which test causes the failure. It supports two modes: normal detection (when you've identified a failing test) and fuzzing (shuffling tests until a failure appears, then finding its cause).\n\nThe tool is pytest-specific and requires your tests to be discoverable and runnable via pytest. It has no runtime dependencies beyond Python itself, making installation and setup straightforward. Bisection typically completes in logarithmic steps relative to your test count, so even large suites can be debugged in reasonable time.","worth_installing":"Yes. If you maintain a pytest suite and have encountered flaky tests or test-order sensitivity, this tool directly solves a hard debugging problem with low friction and no dependencies. Even if you haven't hit the problem yet, it's lightweight enough to keep on hand. No security concerns, active maintenance, and permissive license."},"id":"detect-test-pollution","links":{"html":"https://skillfed.io/packages/detect-test-pollution","md":"https://skillfed.io/packages/detect-test-pollution.md","pypi":"https://pypi.org/project/detect-test-pollution/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-09-28","license_spdx":null,"license_treatment":"permissive","name":"detect-test-pollution","python_support":"supports_current","summary":"a tool to detect test pollution"},"popularity":{"monthly_downloads":324318,"position":7596,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
