import com.sonar.orchestrator.Orchestrator;
import com.sonar.orchestrator.build.SonarRunner;
+import com.sonar.orchestrator.build.SonarScanner;
import org.sonarsource.sonarqube.perf.PerfRule;
import org.sonarsource.sonarqube.perf.PerfTestCase;
import java.io.File;
File userHome = temp.newFolder();
orchestrator.getServer().provisionProject("sample", "xoo-sample");
orchestrator.getServer().associateProjectToQualityProfile("sample", "xoo", "one-xoo-issue-per-line");
- SonarRunner runner = newScanner(
+ SonarScanner runner = newScanner(
"-Xmx512m -server -XX:MaxPermSize=64m",
"sonar.analysis.mode", "issues",
"sonar.userHome", userHome.getAbsolutePath(),
long duration = System.currentTimeMillis() - start;
System.out.println("Issues analysis: " + duration + "ms");
- perfRule.assertDurationAround(duration, 4450L);
+ perfRule.assertDurationAround(duration, 5230L);
}
@Test
.build();
try {
long startupDuration = start(orchestrator);
- assertDurationAround(startupDuration, 46000);
+ assertDurationAround(startupDuration, 41000);
long shutdownDuration = stop(orchestrator);
// can't use percent margins because logs are second-grained but not milliseconds