Skip to content

Integration Test Suite

guwirth edited this page Jan 14, 2021 · 3 revisions

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.

Use Cases

Running the tests

Preconditions

Make sure the following preconditions are met, before running the test suite:

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.

Clone this wiki locally