use of com.sonar.orchestrator.build.SonarScanner in project sonar-web by SonarSource.
the class FileSuffixesTest method filesExtensionsHtmlPhp.
@Test
public void filesExtensionsHtmlPhp() {
SonarScanner build = getSonarRunner().setProperty("sonar.web.file.suffixes", ".html,.php");
orchestrator.executeBuild(build);
assertThat(getAnalyzedFilesNumber()).isEqualTo(2);
}
use of com.sonar.orchestrator.build.SonarScanner in project sonar-web by SonarSource.
the class FileSuffixesTest method filesSuffixesHtml.
@Test
public void filesSuffixesHtml() {
SonarScanner build = getSonarRunner().setProperty("sonar.web.file.suffixes", ".html");
orchestrator.executeBuild(build);
assertThat(getAnalyzedFilesNumber()).isEqualTo(1);
}
use of com.sonar.orchestrator.build.SonarScanner in project sonar-web by SonarSource.
the class FileSuffixesTest method should_analyze_all_files_with_empty_suffixes.
@Test
public void should_analyze_all_files_with_empty_suffixes() {
SonarScanner build = getSonarRunner().setLanguage("web").setProperty("sonar.sourceEncoding", "UTF-8").setProperty("sonar.web.file.suffixes", "");
orchestrator.executeBuild(build);
assertThat(getAnalyzedFilesNumber()).isEqualTo(3);
}
use of com.sonar.orchestrator.build.SonarScanner in project sonar-web by SonarSource.
the class StandardMeasuresTest method init.
@BeforeClass
public static void init() throws Exception {
orchestrator.resetData();
String projectKey = "TestOfWebPlugin";
orchestrator.getServer().provisionProject(projectKey, projectKey);
orchestrator.getServer().associateProjectToQualityProfile(projectKey, "web", "IT");
SonarScanner build = createSonarScanner().setProjectDir(new File("projects/continuum-webapp/")).setProjectKey(projectKey).setProjectName(projectKey).setProjectVersion("1.0").setSourceDirs("src").setProperty("sonar.sourceEncoding", "UTF-8").setProperty("sonar.web.file.suffixes", ".xhtml,.jspf,.jsp");
orchestrator.executeBuild(build);
}
Aggregations