This is an automated email from the ASF dual-hosted git repository.

psomogyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase-connectors.git


The following commit(s) were added to refs/heads/master by this push:
     new b8b0bdf  HBASE-29077 Redirect spark-connector-it logs to file by 
default (#141)
b8b0bdf is described below

commit b8b0bdfb675bb5ed599aedebfee0b4370768b62e
Author: Istvan Toth <[email protected]>
AuthorDate: Wed Feb 19 14:24:13 2025 +0100

    HBASE-29077 Redirect spark-connector-it logs to file by default (#141)
    
    Signed-off-by: Peter Somogyi <[email protected]>
---
 pom.xml                   |  3 +++
 spark/hbase-spark/pom.xml | 16 ++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/pom.xml b/pom.xml
index 90e42ab..be49778 100644
--- a/pom.xml
+++ b/pom.xml
@@ -173,6 +173,9 @@
     <scoverage.version>1.4.11</scoverage.version>
     <sbt-compiler.version>1.0.0</sbt-compiler.version>
     <jacoco.version>0.8.8</jacoco.version>
+    <!-- Default to redirecting test logs
+    This only applies to the java tests, it's not obvious how get scalatest to 
do this. -->
+    <test.output.tofile>true</test.output.tofile>
   </properties>
   <dependencyManagement>
     <dependencies>
diff --git a/spark/hbase-spark/pom.xml b/spark/hbase-spark/pom.xml
index 10a9fd2..ace0def 100644
--- a/spark/hbase-spark/pom.xml
+++ b/spark/hbase-spark/pom.xml
@@ -521,6 +521,22 @@
               </execution>
             </executions>
           </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
+              <failIfNoTests>false</failIfNoTests>
+              <testFailureIgnore>false</testFailureIgnore>
+            </configuration>
+            <dependencies>
+              <dependency>
+                <groupId>org.apache.maven.surefire</groupId>
+                <artifactId>surefire-junit4</artifactId>
+                <version>${surefire.version}</version>
+              </dependency>
+            </dependencies>
+          </plugin>
         </plugins>
       </build>
     </profile>

Reply via email to