This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git

commit 9c8617025db4a68902cb05fb787b2288e0de0b71
Author: Robert Munteanu <[email protected]>
AuthorDate: Tue Feb 26 22:18:19 2019 +0100

    SLING-7597 - Investigate setting up Windows testing
    
    Ignore some flaky/failing tests on Windows.
---
 .../java/org/apache/sling/ide/cli/impl/DirWatcherTest.java     |  5 +++++
 .../test/impl/JcrPartialCoverageAggregatesDeploymentTest.java  | 10 ++++++++--
 .../ide/test/impl/ui/sightly/SightlyAutocompletionTest.java    |  9 ++++++++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git 
a/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java 
b/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java
index 5548afa..be17894 100644
--- a/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java
+++ b/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java
@@ -20,9 +20,12 @@ import static java.nio.charset.StandardCharsets.UTF_8;
 import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
 import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
 import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY;
+import static org.hamcrest.Matchers.containsString;
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.greaterThanOrEqualTo;
+import static org.hamcrest.Matchers.not;
 import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
 
 import java.io.File;
 import java.io.IOException;
@@ -111,6 +114,8 @@ public class DirWatcherTest {
     @Test(timeout = 3000)
     public void deletedFile() throws IOException, InterruptedException {
         
+        assumeThat(System.getProperty("os.name"), 
not(containsString("Windows"))); // TODO - SLING-7596
+        
         File watchRoot = folder.newFolder();
         File subDir = new File(watchRoot, "subDir");
         subDir.mkdir();
diff --git 
a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/JcrPartialCoverageAggregatesDeploymentTest.java
 
b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/JcrPartialCoverageAggregatesDeploymentTest.java
index 6a606df..18a3434 100644
--- 
a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/JcrPartialCoverageAggregatesDeploymentTest.java
+++ 
b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/JcrPartialCoverageAggregatesDeploymentTest.java
@@ -22,6 +22,9 @@ import static 
org.apache.sling.ide.test.impl.helpers.jcr.JcrMatchers.hasPath;
 import static 
org.apache.sling.ide.test.impl.helpers.jcr.JcrMatchers.hasPrimaryType;
 import static 
org.apache.sling.ide.test.impl.helpers.jcr.JcrMatchers.hasPropertyValue;
 import static org.hamcrest.CoreMatchers.allOf;
+import static org.hamcrest.CoreMatchers.containsString;
+import static org.hamcrest.CoreMatchers.not;
+import static org.junit.Assume.assumeThat;
 
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
@@ -247,7 +250,8 @@ public class JcrPartialCoverageAggregatesDeploymentTest {
     
     @Test
     public void deployNodeWithContentXmlInParentFolder() throws Exception {
-        
+        assumeThat(System.getProperty("os.name"), 
not(containsString("Windows"))); // TODO - SLING-7596
+
         wstServer.waitForServerToStart();
 
         // create faceted project
@@ -315,7 +319,9 @@ public class JcrPartialCoverageAggregatesDeploymentTest {
     
     @Test
     public void deployNodeWithContentXmlInParentFolder_reverse() throws 
Exception {
-        
+
+        assumeThat(System.getProperty("os.name"), 
not(containsString("Windows"))); // TODO - SLING-7596
+
         wstServer.waitForServerToStart();
 
         // create faceted project
diff --git 
a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ui/sightly/SightlyAutocompletionTest.java
 
b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ui/sightly/SightlyAutocompletionTest.java
index 635bceb..60263e2 100644
--- 
a/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ui/sightly/SightlyAutocompletionTest.java
+++ 
b/eclipse/eclipse-test/src/org/apache/sling/ide/test/impl/ui/sightly/SightlyAutocompletionTest.java
@@ -16,8 +16,11 @@
  */
 package org.apache.sling.ide.test.impl.ui.sightly;
 
+import static org.hamcrest.CoreMatchers.containsString;
 import static org.hamcrest.CoreMatchers.hasItem;
+import static org.hamcrest.CoreMatchers.not;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.Assume.assumeThat;
 
 import java.io.ByteArrayInputStream;
 import java.util.List;
@@ -59,6 +62,8 @@ public class SightlyAutocompletionTest {
     @Test
     public void tagNameAutocompletion() throws Exception {
         
+        assumeThat(System.getProperty("os.name"), 
not(containsString("Windows"))); // TODO - SLING-7596
+
         List<String> proposals = new AutocompletionCallable() {
             @Override
             protected void prepareEditor(SWTBotEclipseEditor editor) {
@@ -74,7 +79,9 @@ public class SightlyAutocompletionTest {
     
     @Test
     public void attributeAutocompletion() throws Exception {
-        
+
+        assumeThat(System.getProperty("os.name"), 
not(containsString("Windows"))); // TODO - SLING-7596
+
         List<String> proposals = new AutocompletionCallable() {
             @Override
             protected void prepareEditor(SWTBotEclipseEditor editor) {

Reply via email to