From 43cd6e9bf52d67948e62be710e3048d3903b06a4 Mon Sep 17 00:00:00 2001 From: cd2357 <15956136+cd2357@users.noreply.github.com> Date: Thu, 27 Aug 2020 14:10:37 +0200 Subject: [PATCH] Exclude spot price provider tests by default Exclude these tests from the default gradle test task. However, allow the option of having them included by specifying an optional gradle parameter (-Dtest.pricenode.includeSpotProviderTests=true). --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index ab86fc152aa..c82ff3336ad 100644 --- a/build.gradle +++ b/build.gradle @@ -497,6 +497,14 @@ configure(project(':pricenode')) { test { useJUnitPlatform() + + // Disabled by default, since spot provider tests include connections to external API endpoints + // Can be enabled by adding -Dtest.pricenode.includeSpotProviderTests=true to the gradle command: + // ./gradlew test -Dtest.pricenode.includeSpotProviderTests=true + if (System.properties['test.pricenode.includeSpotProviderTests'] != 'true') { + project.logger.lifecycle('Pricenode: Skipping spot provider tests') + exclude 'bisq/price/spot/providers/**' + } } task stage {