Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.55 KB

CONTRIBUTING.md

File metadata and controls

59 lines (40 loc) · 1.55 KB

Contribution

Le projet est hébergé sur GitHub

Visiter GitHub{: .md-button .md-button--primary }

Code

Les tests unitaires sont en cours.

❄ Flake8 🎳 Tests

pip install -r requirements/dev.txt
flake8

La variable d'environnement CI=true permet d'éviter certaines QMessageBox.

  • Run tests in Docker
make start_tests
make run_tests
# Run a custom pattern
cd .docker/ && ./exec_tests.sh test_*.py
make stop_tests

# All in one, but slower
make tests
  • In your QGIS Desktop itself
    • Open the QGIS console
from qgis.utils import plugins
plugins['cadastre'].run_tests()

# Custom pattern
plugins['cadastre'].run_tests('test_*.py')
  • In your IDE, with linked QGIS library
    • Setup your QGIS_PREFIX_PATH etc
    • Right-click on a test and launch it

Documentation

📖 Documentation

La documentation utilise MkDocs avec Material :

pip install -r requirements/doc.txt
mkdocs serve