{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"A pytest plugin that displays colored, side-by-side diffs for failing test assertions, activated with the `-vv` flag and configurable via command-line options.","skillfed_tags":["pytest-plugin","test-output","diff-visualization"],"use_cases":["Debugging complex assertion failures in test suites where the default pytest diff is hard to read quickly.","Making test output more readable in CI/CD logs where colored diffs help identify mismatches faster.","Improving developer experience during local test runs by visually highlighting differences in string, dict, or list comparisons.","Reducing time spent parsing assertion errors in large test suites with many failing tests."],"what_it_does":"pytest-clarity is a pytest plugin that enhances test failure output by replacing the default assertion diff with a colored, side-by-side comparison format inspired by the Ward test framework. When you run pytest with the `-vv` flag, the plugin intercepts failing assertions and renders them with visual highlighting to make differences between expected and actual values easier to spot at a glance.\n\nThe plugin requires no runtime dependencies and integrates directly into pytest's output pipeline. It offers two configuration options: `--diff-width` to control the width of the diff display, and `--diff-symbols` to force a symbolic representation instead of colored text. However, the package has been dormant since mid-2021, with no recent commits or releases, so compatibility with very recent pytest or Python versions may not be guaranteed.","worth_installing":"Yes, if you are running pytest on Python 3.6\u20133.9 and want better visual assertion diffs. The plugin is lightweight, has no dependencies, and is widely downloaded. However, dormancy since 2021 means it may not work with newer pytest or Python versions\u2014verify compatibility with your environment first. If you're on a recent Python or pytest version, test it in a non-critical environment before relying on it."},"id":"pytest-clarity","links":{"html":"https://skillfed.io/packages/pytest-clarity","md":"https://skillfed.io/packages/pytest-clarity.md","pypi":"https://pypi.org/project/pytest-clarity/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2021-06-11","license_spdx":null,"license_treatment":"permissive","name":"pytest-clarity","python_support":"supports_current","summary":"A plugin providing an alternative, colourful diff output for failing assertions."},"popularity":{"monthly_downloads":650999,"position":5554,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
