Skip to content

Integration Test Suite

guwirth edited this page Mar 10, 2021 · 3 revisions

The cxx_ plugin_ contains a small but growing integration test suite.

This testsuite is not only a means to check that the cxx plugin works (or works not) with a particular Database_ 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 supported by the cxx 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 cxx 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 cxx plugin is build and the jar is available.

Clone this wiki locally