JAL-3599 More stderr/stdout output to logs when anything
[jalview.git] / build.gradle
index 8a7e0d7..6517f43 100644 (file)
@@ -4252,8 +4252,8 @@ task jalviewjsLaunchTest(type: Exec) {
   executable(chromiumBinary)
   args([
     "--headless=new",
-    "--timeout=15000",
-    "--virtual-time-budget=15000",
+    "--timeout=60000",
+    "--virtual-time-budget=60000",
     "--user-data-dir=${jalviewjsBuildDir}/${jalviewjs_chromium_user_dir}",
     "--profile-directory=${jalviewjs_chromium_profile_name}",
     "--allow-file-access-from-files",
@@ -4265,6 +4265,11 @@ task jalviewjsLaunchTest(type: Exec) {
   errorOutput = new ByteArrayOutputStream()
   
   doLast {
+    println("Chrome STDOUT: ")
+    println(standardOutput.toString())
+    println("Chrome STDERR: ")
+    println(errorOutput.toString())
+
     def found = false
     def stderr = errorOutput.toString()
     stderr.eachLine { line ->
@@ -4275,6 +4280,7 @@ task jalviewjsLaunchTest(type: Exec) {
       }
     }
     if (!found) {
+      
       throw new GradleException("Could not find evidence of Desktop launch in JalviewJS.")
     }
   }