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.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pytest_blame-0.0.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-blame-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 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.0.1.tar.gz
Algorithm Hash digest
SHA256 84a915949e542621c06843a00333f8931228586ac5d348a525bee0fa5696b82f
MD5 f772816aee88305b5d89dddbaf857ebb
BLAKE2b-256 6e254e8d99d038787eb29a260a0ab1c82495c4705b72714c6668a178c582329c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_blame-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fffe89a951e5647eb73902228a4b804cda0b087cc5c59e6341898d4a677864b
MD5 f7926350213d2ae2408fe955d560832b
BLAKE2b-256 924d3feb2ebb8787782d8635e863d73f5ba94ff99ad199231edcecab1859e8cc

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