Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.37 KB

testing.rst

File metadata and controls

52 lines (35 loc) · 1.37 KB
github_url:https://github.com/LizardByte/Plugger/blob/master/docs/source/contributing/testing.rst

Testing

Flake8

Plugger uses Flake8 for enforcing consistent code styling. Flake8 is included in the requirements-dev.txt.

The config file for flake8 is .flake8. This is already included in the root of the repo and should not be modified.

Test with Flake8
python -m flake8

Sphinx

Plugger uses Sphinx for documentation building. Sphinx is included in the requirements-dev.txt.

Plugger follows numpydoc styling and formatting in docstrings. This will be tested when building the docs. numpydoc is included in the requirements-dev.txt.

The config file for Sphinx is docs/source/conf.py. This is already included in the root of the repo and should not be modified.

Test with Sphinx
cd docs
make html

Alternatively

cd docs
sphinx-build -b html source build

pytest

Plugger uses pytest for unit testing. pytest is included in the requirements-dev.txt.

No config is required for pytest.

Test with pytest
python -m pytest