From e5159f6af665c4d6c3904f6f4e7fbb16321a56cb Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Tue, 6 Dec 2022 09:44:47 -0700
Subject: [PATCH] move test tasks

---
 build.gradle | 48 ++++--------------------------------------------
 1 file changed, 4 insertions(+), 44 deletions(-)

diff --git a/build.gradle b/build.gradle
index 3ba4f3ca..55928268 100644
--- a/build.gradle
+++ b/build.gradle
@@ -54,7 +54,9 @@ tasks.withType(JavaCompile) {
 }
 
 tasks.withType(JavaExec) {
-  dependsOn downloadNshms
+  // CONUS 2018 is the default model used for web serivces
+  // See src/main/resources/application.yml
+  dependsOn conus2018
   jvmArgs(
       '-noverify',
       '-Xms2g',
@@ -74,52 +76,10 @@ tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
   }
 }
 
-tasks.withType(Test) {
-  dependsOn downloadNshms
-}
-
 test {
   useJUnitPlatform()
 
   filter {
-    excludeTestsMatching "gov.usgs.earthquake.nshmp.model.NshmTests*"
-  }
-}
-
-task testConus2018(type: Test) {
-  description = "Test CONUS 2018 NSHM"
-  group = "verification"
-
-  testLogging {
-    exceptionFormat "full"
-  }
-
-  useJUnitPlatform()
-  jvmArgs(
-      "-Xms2g",
-      "-Xmx8g",
-      )
-
-  filter {
-    includeTestsMatching "gov.usgs.earthquake.nshmp.model.NshmTestsConus2018"
-  }
-}
-
-task testHawaii2021(type: Test) {
-  description = "Test Hawaii 2021 NSHM"
-  group = "verification"
-
-  testLogging {
-    exceptionFormat "full"
-  }
-
-  useJUnitPlatform()
-  jvmArgs(
-      "-Xms2g",
-      "-Xmx8g",
-      )
-
-  filter {
-    includeTestsMatching "gov.usgs.earthquake.nshmp.model.NshmTestsHawaii2021"
+    excludeTestsMatching "gov.usgs.earthquake.nshmp.model.NshmTests"
   }
 }
-- 
GitLab