Skip to content

JEsperancinhaOrg/omni-coveragereporter-python

Repository files navigation

omni-coveragereporter-python

Generic badge

GitHub License

GitHub release PyPI

omni-coveragereporter-python

Codacy Badge

Codacy Badge Coverage Status codecov

GitHub language count GitHub top language GitHub top language

Intro

I created this plugin to support my exclusive Python projects. This is a spin-off project from the original one I've created to support my maven projects on Generic badge.

Current version is very limited by comparison and not much is configurable.

You can find a working example on the projects listed in the table below.

Features

1. Reporting file supported

Type Status Notes Available from Release Example Project
Coverage Py JSON Coverage PY JSON file(s) must be generated in the root folder 0.0.0 Generic badge
Coverage GoLang Coverage files created by Go 0.0.2 Generic badge
Clover Clover files created by coverage tools 0.0.3 Generic badge

2. Online API's supported

Type Status Notes Environment Variables Available from Release
Coveralls COVERALLS_REPO_TOKEN or COVERALLS_TOKEN 0.0.0
Codacy CODACY_PROJECT_TOKEN 0.0.0
CodeCov CODECOV_TOKEN 0.0.0

Run Locally

python3 omni_coveragereporter_python.py

Run Coverage

coverage run --source=omni-coveragereporter-python -m pytest
coverage run --source=omni-coveragereporter-python -m pytest  --capture=no 
coverage report -m

coverage html
coverage json
coverage xml

Python packaging commands

pip3 install twine

cd omni-coveragereporter-python

python3 setup.py sdist

pip3 install dist/omni_coveragereporter-0.0.3.tar.gz

pip3 uninstall omni_coveragereporter

twine upload dist/*

Install/Uninstall Python libraries

sudo pip uninstall omni_coveragereporter

sudo pip install omni_coveragereporter

Test files

In all Omni projects, there are test files scattered all over the place. This is needed to see how the application behaves in different test scenarios. To keep things organized, this is the list of the files that are here specifically for test purposes:


References

About me

GitHub followers