Whitebox Plugin - GPS Display
This is a plugin for whitebox that displays the GPS data using leaflet.js.
Installation
Simply install the plugin to whitebox:
poetry add whitebox-plugin-gps-display
Adding Plugin to Whitebox Locally (For Development)
- Set up whitebox locally.
- Clone this repository.
- Add plugin to whitebox (editable mode):
poetry add -e path/to/plugin.
- Run the whitebox server.
Running Plugin Tests Locally
- Ensure you have the plugin installed in whitebox like mentioned above.
- Install playwright to whitebox:
poetry add playwright
. - Run:
poetry run playwright install
. - Run:
poetry run playwright install-deps
(optional, for Linux only). - Run the tests:
make test
.
This would load the plugin in whitebox, discover its tests and run them.
Contribution Guidelines
- Write tests for each new feature.
- Ensure coverage is 90% or more.
- Google style docstrings
should be used for all functions and classes.