- Some integration tests load plugins relying on Node.js, so make sure the latest LTS version is installed and
node
is in the PATH. - SonarQube ITs need Java 17 to run and SonarCloud ITs need Java 11
- Make sure your Developer Box is properly setup (see xtranet)
- Configure Orchestrator settings as described here. The Artifactory API key and GitHub token are the only mandatory options. The GH token is a Personal Access Token (classic) with the
repo
scope permission, and SSO properly configured - For SonarCloud ITs, make sure the
SONARCLOUD_IT_PASSWORD
env var is defined (you can find the value in our password management tool) - Run
mvn clean install
a first time from thisits
folder so that test resources are built (like custom plugins)
- From the root folder of the repository, first build sonarlint-core with
mvn clean install
- Make sure the
its
profile is activated in the Maven tool window - Reload the project with the top left button of the Maven tool window
- Open a test class and run it
- From the root folder of the repository, first build sonarlint-core with
mvn clean install
- Run
mvn verify -f its/pom.xml -Dsonar.runtimeVersion=<SQ server version>