linz / qgis-scriptassistant-plugin

Reload and test scripts within QGIS without any manual effort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QGIS Script Assistant Plugin

image

image

image

image

This is a QGIS plugin with three helper tools for QGIS development purposes:

  • Reload processing user scripts into QGIS from any existing directory
  • Run tests within QGIS in a way that makes them configurable for local and travis-ci testing without any manual amendments
  • Add all of the test data referred to in those tests with a click

These tools make life easier if you:

  • store user scripts in a .git repository and need to load development versions into QGIS processing (different use case to the QGIS Resource Sharing plugin which allows sharing of finished scripts)
  • want to edit scripts and tests in your text editor of choice, and easily reload / run in QGIS
  • want to use __file__ - this doesn't work in the QGIS Python Console but does work with the provided test runner

Installation

The plugin can be installed in QGIS through the QGIS Official Plugin Repository.

To install it for development purposes, clone this repository and then symlink the /scriptassistant dir to /$user/.qgis2/python/plugins/scriptassistant.

Documentation

See the full docs on readthedocs.

Tests

On installation, the plugin is configured to test itself. Click the Test Scripts button to test.

Limitations

  • Scripts named in the format test_x.py must be within the test directory - subdirectories are ignored.
  • The tests_x.py script must have a run_tests function in order for tests to be called.
  • Only .shp (shapefile) format test data is supported.

About

Reload and test scripts within QGIS without any manual effort

License:Other


Languages

Language:Python 100.0%