Skip to content

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

License

Notifications You must be signed in to change notification settings

darrenburns/pytest-clarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-clarity

PyPI version conda-forge version Python versions See Build Status on Travis CI

A pytest plugin which brings the coloured diff output from the Ward test framework to pytest.

After

Example output with pytest-clarity

Before

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 -vv option is supplied to pytest.

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

pytest -vv --diff-width=60

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

pytest -vv --diff-symbols

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages