MIT License

项目介绍

darrenburns/pytest-clarity 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 456 个 Star、22 次 Fork。

仓库全名
darrenburns/pytest-clarity
开源许可证
MIT License
Star 数
456
Fork 数
22
未关闭 Issue
10

README 摘要

================= pytest-clarity ================= :target: https://pypi.org/project/pytest-clarity :alt: PyPI version :target: https://anaconda.org/conda-forge/pytest-clarity :alt: conda-forge version :target: https://pypi.org/project/pytest-clarity :alt: Python versions .. image:: https://travis-ci.org/darrenburns/pytest-clarity.svg?branch=master :target: https://travis-ci.org/darrenburns/pytest-clarity :alt: See…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pytest-clarity 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 456 个 Star。

pytest-clarity 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 pytest-clarity 的源码?

可以直接克隆仓库:git clone https://github.com/darrenburns/pytest-clarity.git;安装与运行步骤见仓库 README。

pytest-clarity 最近还在维护吗?

仓库最近一次更新为 2024年2月18日,当前有 10 个未关闭 Issue;Star 数为 456,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A plugin to improve the output of pytest with colourful unified diffs

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
956
价值分
325
活跃状态
活跃

README

================= pytest-clarity

… image:: https://img.shields.io/pypi/v/pytest-clarity.svg :target: https://pypi.org/project/pytest-clarity :alt: PyPI version

… image:: https://img.shields.io/conda/vn/conda-forge/pytest-clarity.svg :target: https://anaconda.org/conda-forge/pytest-clarity :alt: conda-forge version

… image:: https://img.shields.io/pypi/pyversions/pytest-clarity.svg :target: https://pypi.org/project/pytest-clarity :alt: Python versions

… image:: https://travis-ci.org/darrenburns/pytest-clarity.svg?branch=master :target: https://travis-ci.org/darrenburns/pytest-clarity :alt: See Build Status on Travis CI

A pytest plugin which brings the coloured diff output from the Ward test framework <https://github.com/darrenburns/ward>_ to pytest.

After

… image:: https://user-images.githubusercontent.com/5740731/121730571-c5387600-cae7-11eb-96eb-eaa6d4cfd09f.png :alt: Example output with pytest-clarity

Before

… image:: https://user-images.githubusercontent.com/5740731/121730569-c4074900-cae7-11eb-9416-47f02ca4ff82.png :alt: Example output without pytest-clarity

Requirements

Supports Python 3.6+.

Installation

You can install “pytest-clarity” via pip::

$ pip install pytest-clarity

Usage

Install the plugin as described above.

The plugin will only be activated when the :code:-vv option is supplied to :code:pytest.

You can configure the width of the output with the :code:--diff-width option:

::

pytest -vv --diff-width=60

You can force pytest-clarity to show a symbolic diff with :code:--diff-symbols::

pytest -vv --diff-symbols

评论

暂无评论