Testing plugins

Table of contents

  1. Run tests
  2. Run test with coverage
  3. Review code quality and styles error
  4. Review hint typing

We must go to the folder of the plugin in question in order to carry out the following commands. We also encourage to use act and use the main action in local, which will execute the three above-mentioned tools.

Run tests

To run all the tests of a plugin:

pip install pytest
make test

Run test with coverage

pip install pytest coverage
make cov

Review code quality and styles error

pip install prospector
make lint

Review hint typing

pip install mypy
make mypy