Skip to main content

A pytest plugin helps developers to debug by providing useful commits history.

Project description

# pytest-blame

![logo](.github/temp-blame-icon.jpg “alt-text”)

[![Build Status](https://api.travis-ci.com/inTestiGator/pytest-blame.svg?branch=master)]( https://travis-ci.com/inTestiGator/pytest-blame) [![codecov.io](http://codecov.io/github/inTestiGator/pytest-blame/coverage.svg?branch=master)]( http://codecov.io/github/inTestiGator/pytest-blame?branch=master) [![made-with-python](http://img.shields.io/badge/Made%20with-Python-blue.svg)]( https://www.python.org/) [![PyPI version](https://img.shields.io/pypi/v/pytest-blame.svg)](https://test.pypi.org/project/pytest-blame/) [![gitter-join-chat](https://badges.gitter.im/Join%20Chat.svg)]( https://gitter.im/pytest-blame/community)

A pytest plugin that helps developers build successful test cases by providing them with GitHub commit information when their test cases fail.

## Basic Features

After pytest-blame has been successfully installed run pytest with the –track flag and you will see a report containing GitHub information at the top of your pytest report. pytest-blame will display the number of test cases that passed in the latest commit to GitHub, so you can compare it with your current rate.

To run: As of now there isn’t a way to see the output in a standard way. To run you need to copy the contents of pytest_blame.py over to tests/conftest.py

` cp pytest_blame.py tests/conftest.py `

then running pytest –track tests/ to see the output of the plugin.

[Sample PyPI page](https://test.pypi.org/project/pytest-blame/)

Install the most recent version of this plugin with

` pip install -i https://test.pypi.org/simple/ pytest-blame `

## Additional Features

Read commits on GitHub and print out information since the most recent commit that passed test case.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-blame-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distributions

pytest_blame-0.1.1-py3.6.egg (6.0 kB view details)

Uploaded Source

pytest_blame-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest-blame-0.1.1.tar.gz.

File metadata

  • Download URL: pytest-blame-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pytest-blame-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b79467e667387f83174a9f88e8543aa5083e53ca694f550f610c67cc56427c46
MD5 ede1853cbf49feceacb4fd9284e767a6
BLAKE2b-256 ca45ff0012b3ac96814f2cb7da79ae5283f970afc55c1354d2b7931a665b315c

See more details on using hashes here.

File details

Details for the file pytest_blame-0.1.1-py3.6.egg.

File metadata

  • Download URL: pytest_blame-0.1.1-py3.6.egg
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pytest_blame-0.1.1-py3.6.egg
Algorithm Hash digest
SHA256 83e35abbf6e95c7949573b3657a4e50dd574a462138c35afe66264114b7200eb
MD5 93c476ea13d83ba69e42b2d44b3c0336
BLAKE2b-256 8fa2804469e27fe6bcbfb881b58772c5f005eba23c8ed7d8c6172185add4e1ac

See more details on using hashes here.

File details

Details for the file pytest_blame-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_blame-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for pytest_blame-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45da3885d4b700a58ee15103df61925a9d5f9dda13e72bc200ce4dae737089b9
MD5 3e148c2c1fce98fdac577856f4f0e198
BLAKE2b-256 c78fe5b3e3f044c8621a3d550f7f1f3f793e9a61b369154441fdfcd2a85cc4ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page