aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-tests
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-05-23 11:56:52 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-09 08:26:48 +0200
commitc72da32c69c14f71b68c81f46adfe219ecc40c9e (patch)
treedebc362aa44c8fa7ada206661984684a0e66fac3 /it/it-tests
parent7a9dd7414a10abcec0c3f8e4297ba5d7ff72bcc5 (diff)
downloadsonarqube-c72da32c69c14f71b68c81f46adfe219ecc40c9e.tar.gz
sonarqube-c72da32c69c14f71b68c81f46adfe219ecc40c9e.zip
SONAR-9260 allow to filter on NO_DATA in project search
Diffstat (limited to 'it/it-tests')
-rw-r--r--it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java b/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java
index 5070fd3c5c9..4d4b50369a3 100644
--- a/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java
+++ b/it/it-tests/src/test/java/it/projectSearch/SearchProjectsTest.java
@@ -86,7 +86,7 @@ public class SearchProjectsTest {
@Test
public void filter_projects_by_measure_values() throws Exception {
String projectKey = newProjectKey();
- analyzeProject(projectKey, "shared/xoo-sample");
+ analyzeProject(projectKey,"shared/xoo-sample");
verifyFilterMatches(projectKey, "ncloc > 1");
verifyFilterMatches(projectKey, "ncloc > 1 and comment_lines < 10000");
@@ -94,6 +94,15 @@ public class SearchProjectsTest {
}
@Test
+ public void find_projects_with_no_data() throws Exception {
+ String projectKey = newProjectKey();
+ analyzeProject(projectKey,"shared/xoo-sample");
+
+ verifyFilterMatches(projectKey, "coverage = NO_DATA");
+ verifyFilterDoesNotMatch("ncloc = NO_DATA");
+ }
+
+ @Test
public void filter_by_text_query() throws IOException {
orchestrator.executeBuild(create(projectDir("shared/xoo-sample"), "sonar.projectKey", "project1", "sonar.projectName", "apachee"));
orchestrator.executeBuild(create(projectDir("shared/xoo-sample"), "sonar.projectKey", "project2", "sonar.projectName", "Apache"));