From aa147962a1260abf4a6699c52c96fda21ac8f2ae Mon Sep 17 00:00:00 2001 From: Tom Czarniecki Date: Wed, 13 Dec 2023 09:25:55 +1100 Subject: [PATCH] don't run integration tests automatically --- build.gradle | 4 ---- .../java/com/tomczarniecki/s3/rest/WebClientServiceTests.java | 2 +- .../com/tomczarniecki/s3/tests/S3DropBoxEndToEndTests.java | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index ae18e59..d43e941 100644 --- a/build.gradle +++ b/build.gradle @@ -35,7 +35,3 @@ dependencies { testImplementation 'org.hamcrest:hamcrest-all:1.3' testImplementation 'com.googlecode.windowlicker:windowlicker-swing:r268' } - -test { - systemProperty "ignore.integration.tests", System.getProperty("ignore.integration.tests") -} diff --git a/src/test/java/com/tomczarniecki/s3/rest/WebClientServiceTests.java b/src/test/java/com/tomczarniecki/s3/rest/WebClientServiceTests.java index 3960fda..5eafc08 100755 --- a/src/test/java/com/tomczarniecki/s3/rest/WebClientServiceTests.java +++ b/src/test/java/com/tomczarniecki/s3/rest/WebClientServiceTests.java @@ -69,7 +69,7 @@ public class WebClientServiceTests { @BeforeClass public static void setUp() throws Exception { - assumeThat(Boolean.getBoolean("ignore.integration.tests"), equalTo(false)); + assumeThat(Boolean.getBoolean("run.integration.tests"), equalTo(true)); credentials = new ConfigurationFactory(null).load(); } diff --git a/src/test/java/com/tomczarniecki/s3/tests/S3DropBoxEndToEndTests.java b/src/test/java/com/tomczarniecki/s3/tests/S3DropBoxEndToEndTests.java index f33296b..b1feadb 100755 --- a/src/test/java/com/tomczarniecki/s3/tests/S3DropBoxEndToEndTests.java +++ b/src/test/java/com/tomczarniecki/s3/tests/S3DropBoxEndToEndTests.java @@ -40,7 +40,7 @@ public class S3DropBoxEndToEndTests { @BeforeClass public static void checkIfCanRun() { - assumeThat(Boolean.getBoolean("ignore.integration.tests"), equalTo(false)); + assumeThat(Boolean.getBoolean("run.integration.tests"), equalTo(true)); } @After