use of org.sonar.scanner.mediumtest.TaskResult in project sonarqube by SonarSource.
the class ScanOnlyChangedTest method testScanAll.
@Test
public void testScanAll() throws Exception {
File projectDir = copyProject("/mediumtest/xoo/sample");
TaskResult result = tester.newScanTask(new File(projectDir, "sonar-project.properties")).property("sonar.scanAllFiles", "true").start();
assertNumberIssues(result, 16, 2, 0);
/*
* 8 new per line
*/
assertNumberIssuesOnFile(result, "HelloJava.xoo", 8);
}
Aggregations