A pytest plugin helps developers to debug by providing useful commits history.
Project description
pytest-blame
A pytest plugin that helps developers build successful test cases by providing them with GitHub commit information when their test cases fail.
A Python Plugin for Tracking Test Case Status
Everyone uses pytest. Or at least, everyone should. It's a super useful testing
program with an easy-to-use syntax. Pytest Blame is a pytest plugin that allows
pytest to do a quick check to Github to make sure the most recent commit is
passing your cases. If somebody broke your cases, pytest-blame
will display
all the commits pushed since the build broke as well as who pushed each commit.
This keeps team workflow transparent and allows for semi-realtime updates from
Github without having to open a browser. Since pytest-blame
can check up on
the online repository as frequently as every time you run your test suite, there
is less risk of a broken commit going unnoticed until a merge conflict occurs.
Installation
To install pytest-blame
you will need to clone the git repository <https://github.com/inTestiGator/pytest-blame>
. Once the repository has been
cloned you will need to run the install script to update your pytest
configuration:
pipenv run python setup.py install
After pytest-blame
has been successfully installed you will need to generate
a Github User Token. To do this you will need to go to settings
in your github
profile:
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.
Install the most recent version of this plugin with
pip install pytest-blame
Additional Features
Read commits on GitHub and print out information since the most recent commit that passed test case.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-blame-0.1.5.tar.gz
.
File metadata
- Download URL: pytest-blame-0.1.5.tar.gz
- Upload date:
- Size: 5.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63177cf2055c195bc47eba03a6f371b3d64f3cfa24fb508bc39d2226e6d7cee |
|
MD5 | ea2b91551e012e7a668ad3d7d014c2a3 |
|
BLAKE2b-256 | 8de6b816e5df1142d6548803e9715ebdd38247907a5e095437b2ea032a5b5ab3 |
File details
Details for the file pytest_blame-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: pytest_blame-0.1.5-py3-none-any.whl
- Upload date:
- Size: 19.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 346625e822fbd9a1dd49de930c6174a00833479d4b0e6900cfa4ef0c5f4476f2 |
|
MD5 | 4b20d7819ec0bf27b43e6b2659089de8 |
|
BLAKE2b-256 | 275b6f6cf2a50521988df4ccde3d66dbe3c76ca855b13fa11362834c9c1f9cdf |