From 0b51a72da1f82c43a57c412d6aee7c6bc3b55309 Mon Sep 17 00:00:00 2001 From: mary-georgiou-sonarsource Date: Thu, 25 Jul 2024 16:42:08 +0200 Subject: [PATCH] remove build profile --- .../com/sonar/it/csharp/MetricsIncludeHeaderCommentTest.java | 2 +- its/src/test/java/com/sonar/it/csharp/Tests.java | 2 +- its/src/test/java/com/sonar/it/shared/Tests.java | 2 +- its/src/test/java/com/sonar/it/vbnet/Tests.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/its/src/test/java/com/sonar/it/csharp/MetricsIncludeHeaderCommentTest.java b/its/src/test/java/com/sonar/it/csharp/MetricsIncludeHeaderCommentTest.java index d9db0a1e8c0..24272e7ecd8 100644 --- a/its/src/test/java/com/sonar/it/csharp/MetricsIncludeHeaderCommentTest.java +++ b/its/src/test/java/com/sonar/it/csharp/MetricsIncludeHeaderCommentTest.java @@ -58,7 +58,7 @@ public class MetricsIncludeHeaderCommentTest { public static void beforeAll() throws Exception { Path projectDir = TestUtils.projectDir(temp, "MetricsTest"); ScannerForMSBuild beginStep = TestUtils.createBeginStep(PROJECT_KEY, projectDir) - .setProfile("no_rule") + //.setProfile("no_rule") // Without that, the MetricsTest project is considered as a Test project :) .setProperty("sonar.msbuild.testProjectPattern", "noTests"); diff --git a/its/src/test/java/com/sonar/it/csharp/Tests.java b/its/src/test/java/com/sonar/it/csharp/Tests.java index 838098d1ec0..1e97b5303fc 100644 --- a/its/src/test/java/com/sonar/it/csharp/Tests.java +++ b/its/src/test/java/com/sonar/it/csharp/Tests.java @@ -88,7 +88,7 @@ public static BuildResult analyzeProject(String projectKey, Path temp, String pr public static BuildResult analyzeProjectPath(String projectKey, Path projectFullPath, @Nullable String profileKey, String... keyValues) { ScannerForMSBuild beginStep = TestUtils.createBeginStep(projectKey, projectFullPath) - .setProfile(profileKey) + //.setProfile(profileKey) .setProperties(keyValues); ORCHESTRATOR.executeBuild(beginStep); diff --git a/its/src/test/java/com/sonar/it/shared/Tests.java b/its/src/test/java/com/sonar/it/shared/Tests.java index 2de0d780679..f013729d8fa 100644 --- a/its/src/test/java/com/sonar/it/shared/Tests.java +++ b/its/src/test/java/com/sonar/it/shared/Tests.java @@ -59,7 +59,7 @@ public static BuildResult analyzeProject(Path temp, String projectDir) throws IO public static BuildResult analyzeProject(Path temp, String projectDir, @Nullable String profileKey, String... keyValues) throws IOException { Path projectFullPath = TestUtils.projectDir(temp, projectDir); ScannerForMSBuild beginStep = TestUtils.createBeginStep(projectDir, projectFullPath) - .setProfile(profileKey) + //.setProfile(profileKey) .setProperties(keyValues); ORCHESTRATOR.executeBuild(beginStep); TestUtils.runBuild(projectFullPath); diff --git a/its/src/test/java/com/sonar/it/vbnet/Tests.java b/its/src/test/java/com/sonar/it/vbnet/Tests.java index 7a734a70551..e9a0a3db066 100644 --- a/its/src/test/java/com/sonar/it/vbnet/Tests.java +++ b/its/src/test/java/com/sonar/it/vbnet/Tests.java @@ -64,7 +64,7 @@ static BuildResult analyzeProject(Path temp, String projectName) throws IOExcept static BuildResult analyzeProject(Path temp, String projectDir, @Nullable String profileKey, String... keyValues) throws IOException { Path projectFullPath = TestUtils.projectDir(temp, projectDir); ScannerForMSBuild beginStep = TestUtils.createBeginStep(projectDir, projectFullPath) - .setProfile(profileKey) + //.setProfile(profileKey) .setProperties(keyValues); ORCHESTRATOR.executeBuild(beginStep);