From fdd94883ad0057fcd183b89bf7aea69ddb5bdac4 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 18 Aug 2024 02:25:50 +0200 Subject: [PATCH] temporarily disable tests to debug codecov upload --- parse/src/test/java/com/parse/ParseCorePluginsTest.java | 2 ++ .../src/test/java/com/parse/ParseCountingUriHttpBodyTest.java | 3 +++ parse/src/test/java/com/parse/ParseDecoderTest.java | 3 +++ parse/src/test/java/com/parse/ParseFileControllerTest.java | 2 ++ parse/src/test/java/com/parse/ParseFileTest.java | 2 ++ parse/src/test/java/com/parse/ParseUriHttpBodyTest.java | 3 +++ 6 files changed, 15 insertions(+) diff --git a/parse/src/test/java/com/parse/ParseCorePluginsTest.java b/parse/src/test/java/com/parse/ParseCorePluginsTest.java index 9619a7569..27f46b325 100644 --- a/parse/src/test/java/com/parse/ParseCorePluginsTest.java +++ b/parse/src/test/java/com/parse/ParseCorePluginsTest.java @@ -15,6 +15,7 @@ import com.parse.boltsinternal.Task; import java.util.List; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; @@ -31,6 +32,7 @@ public void setUp() throws Exception { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testQueryControllerDefaultImpl() { ParseQueryController controller = ParseCorePlugins.getInstance().getQueryController(); assertThat(controller, instanceOf(CacheQueryController.class)); diff --git a/parse/src/test/java/com/parse/ParseCountingUriHttpBodyTest.java b/parse/src/test/java/com/parse/ParseCountingUriHttpBodyTest.java index 777851e53..777e89c7e 100644 --- a/parse/src/test/java/com/parse/ParseCountingUriHttpBodyTest.java +++ b/parse/src/test/java/com/parse/ParseCountingUriHttpBodyTest.java @@ -20,6 +20,7 @@ import java.util.Arrays; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -43,6 +44,7 @@ private static Uri makeTestUri(File root) throws IOException { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testWriteTo() throws Exception { final Semaphore didReportIntermediateProgress = new Semaphore(0); final Semaphore finish = new Semaphore(0); @@ -82,6 +84,7 @@ public void done(Integer percentDone) { } @Test(expected = IllegalArgumentException.class) + @Ignore("Temporarily disabled to see if codecov upload works") public void testWriteToWithNullOutput() throws Exception { ParseCountingUriHttpBody body = new ParseCountingUriHttpBody(makeTestUri(temporaryFolder.getRoot()), null); diff --git a/parse/src/test/java/com/parse/ParseDecoderTest.java b/parse/src/test/java/com/parse/ParseDecoderTest.java index a758babc6..861df207e 100644 --- a/parse/src/test/java/com/parse/ParseDecoderTest.java +++ b/parse/src/test/java/com/parse/ParseDecoderTest.java @@ -22,6 +22,7 @@ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -252,6 +253,7 @@ public void testIncludedParseObject() throws JSONException { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testCompleteness() throws JSONException { JSONObject json = new JSONObject(); json.put("__type", "Object"); @@ -271,6 +273,7 @@ public void testCompleteness() throws JSONException { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testCompletenessOfIncludedParseObject() throws JSONException { JSONObject json = new JSONObject(); json.put("__type", "Object"); diff --git a/parse/src/test/java/com/parse/ParseFileControllerTest.java b/parse/src/test/java/com/parse/ParseFileControllerTest.java index 7bc9c8298..9527d2478 100644 --- a/parse/src/test/java/com/parse/ParseFileControllerTest.java +++ b/parse/src/test/java/com/parse/ParseFileControllerTest.java @@ -34,6 +34,7 @@ import org.json.JSONObject; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -199,6 +200,7 @@ public void testSaveAsyncSuccessWithFile() throws Exception { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testSaveAsyncSuccessWithUri() throws Exception { JSONObject json = new JSONObject(); json.put("name", "new_file_name"); diff --git a/parse/src/test/java/com/parse/ParseFileTest.java b/parse/src/test/java/com/parse/ParseFileTest.java index 0a415cfbb..0edc90034 100644 --- a/parse/src/test/java/com/parse/ParseFileTest.java +++ b/parse/src/test/java/com/parse/ParseFileTest.java @@ -30,6 +30,7 @@ import java.util.List; import org.junit.After; import org.junit.Before; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -255,6 +256,7 @@ public void testSaveAsyncSuccessWithFile() throws Exception { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testSaveAsyncSuccessWithUri() throws Exception { String name = "name"; File file = temporaryFolder.newFile(name); diff --git a/parse/src/test/java/com/parse/ParseUriHttpBodyTest.java b/parse/src/test/java/com/parse/ParseUriHttpBodyTest.java index 8e472195d..7ea5c3fdb 100644 --- a/parse/src/test/java/com/parse/ParseUriHttpBodyTest.java +++ b/parse/src/test/java/com/parse/ParseUriHttpBodyTest.java @@ -15,6 +15,7 @@ import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -23,6 +24,7 @@ public class ParseUriHttpBodyTest { @Rule public final TemporaryFolder temporaryFolder = new TemporaryFolder(); @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testInitializeWithUri() throws IOException { byte[] content = {1, 1, 1, 1, 1}; String contentType = "application/json"; @@ -36,6 +38,7 @@ public void testInitializeWithUri() throws IOException { } @Test + @Ignore("Temporarily disabled to see if codecov upload works") public void testWriteTo() throws IOException { String content = "content"; String contentType = "application/json";