Skip to content

Commit 2cd192c

Browse files
committed
Use "sonar.scanner.skipJreProvisioning" in integration tests
On ephemeral CI machine this avoids unnecessary downloading and unpacking of JRE from SQ and thus reduces time of execution of the first project analysis in integration tests. During execution of integration tests we already have suitable JDK. Testing of JRE provisioning feature should not be the responsibility of analyzers.
1 parent 3145824 commit 2cd192c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

its/plugin/src/test/java/com/sonar/it/xml/XmlTestSuite.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class XmlTestSuite {
5757

5858
static SonarScanner createSonarScanner() {
5959
SonarScanner build = SonarScanner.create();
60+
build.setProperty("sonar.scanner.skipJreProvisioning", "true");
6061
// xhtml has been removed from default file suffixes (SONARXML-5)
6162
build.setProperty("sonar.xml.file.suffixes", ".xml,.xhtml");
6263
return build;

its/ruling/src/test/java/org/sonarsource/xml/it/XmlRulingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ void test() throws Exception {
9595
ORCHESTRATOR.getServer().associateProjectToQualityProfile("project", LANGUAGE, QUALITY_PROFILE_NAME);
9696
File litsDifferencesFile = FileLocation.of("target/differences").getFile();
9797
SonarScanner build = SonarScanner.create(FileLocation.of("../sources/projects").getFile())
98+
.setProperty("sonar.scanner.skipJreProvisioning", "true")
9899
.setProjectKey("project")
99100
.setProjectName("project")
100101
.setProjectVersion("1")

0 commit comments

Comments
 (0)