Skip to content

Commit

Permalink
remove build profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Jul 25, 2024
1 parent acbaa86 commit 0b51a72
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion its/src/test/java/com/sonar/it/csharp/Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion its/src/test/java/com/sonar/it/shared/Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion its/src/test/java/com/sonar/it/vbnet/Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0b51a72

Please sign in to comment.