Metadata-Version: 2.1
Name: pytest-blame
Version: 0.1.2
Summary: A pytest plugin helps developers to debug by providing useful commits history.
Home-page: https://github.com/inTestiGator/pytest-blame
Author: Lancaster Wu, Spencer Huang, Carson Quigley, Patrick Palad, Paul Livingston
Author-email: wuj@allegheny.edu, huangs@allegheny.edu, quigleyc@allegheny.edu, paladp@allegheny.edu, livingstonp@allegheny.edu
License: GNU
Platform: any
Requires-Dist: pygithub
Requires-Dist: pytest (>=4.4.0)
Requires-Dist: gitpython
Requires-Dist: requests


pytest-blame
============

.. image:: .github/blame-icon.png
   :target: .github/blame-icon.png
   :alt: logo

-------------------------------------------------------------------------------

.. image:: https://api.travis-ci.com/inTestiGator/pytest-blame.svg?branch=master
   :target: https://api.travis-ci.com/inTestiGator/pytest-blame.svg?branch=master
   :alt: Build Status

.. image:: http://codecov.io/github/inTestiGator/pytest-blame/coverage.svg?branch=master
   :target: http://codecov.io/github/inTestiGator/pytest-blame/coverage.svg?branch=master
   :alt: codecov.io

.. image:: http://img.shields.io/badge/Made%20with-Python-blue.svg
   :target: http://img.shields.io/badge/Made%20with-Python-blue.svg
   :alt: made-with-python

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

.. image:: https://badges.gitter.im/Join%20Chat.svg
   :target: https://gitter.im/pytest-blame/community
   :alt: gitter-join-chat

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``

.. code-block::

   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

.. code-block::

   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.


