-
Notifications
You must be signed in to change notification settings - Fork 364
Integration Test Suite
The plugin contains a small but growing integration test suite.
This testsuite is not only a means to check that the plugin works (or works not) with a particular SonarQube version/setup. It also strives to be a living use case documentation in style in spirit of BDD. The following mind map gives an overview over use cases suppoted by thi plugin. The ultimate goal is to cover all of them by tests of this testsuite.
Preconditions
Make sure the following preconditions are met, before running the test suite:
- Python is installed
- behave (http://pythonhosted.org/behave/) is installed
- request module is available ('pip install requests' may help)
- Optional: colorama module is installed ('pip install colorama')
Usage
Either install the plugin, startup SonarQube manually and simply run:
$ behave
from the project root folder or let the test suite do the job by telling it the path to your SQ installation:
$ SONARHOME=/path/to/SonarQube behave
In the latter case, the suite will automatically install and test the jar in sonar-python-plugin/target. So make sure the plugin is build and the jar is available.