You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ag...@apache.org on 2024/05/09 04:31:50 UTC

(datafusion-comet) branch main updated: docs: Running ScalaTest suites from the CLI (#404)

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

agrove pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git


The following commit(s) were added to refs/heads/main by this push:
     new 14033806 docs: Running ScalaTest suites from the CLI (#404)
14033806 is described below

commit 140338066cb06504b820cc1210f329f3ba6a4d93
Author: Edmondo Porcu <ed...@gmail.com>
AuthorDate: Thu May 9 00:31:46 2024 -0400

    docs: Running ScalaTest suites from the CLI (#404)
    
    * Adding documentation to run single tests
    
    * Removed empty newline
    
    * Fixing README and development.md
    
    ---------
    
    Co-authored-by: Edmondo Porcu <ed...@capitalone.com>
---
 docs/source/contributor-guide/development.md | 12 ++++++++++++
 pom.xml                                      |  1 +
 2 files changed, 13 insertions(+)

diff --git a/docs/source/contributor-guide/development.md b/docs/source/contributor-guide/development.md
index 356c81b3..b0d247c0 100644
--- a/docs/source/contributor-guide/development.md
+++ b/docs/source/contributor-guide/development.md
@@ -73,6 +73,18 @@ After that you can open the project in CLion. The IDE should automatically detec
 Like other Maven projects, you can run tests in IntelliJ IDEA by right-clicking on the test class or test method and selecting "Run" or "Debug".
 However if the tests is related to the native side. Please make sure to run `make core` or `cd core && cargo build` before running the tests in IDEA.
 
+### Running Tests from command line
+
+It is possible to specify which ScalaTest suites you want to run from the CLI using the `suites`
+argument, for example if you only want to execute the test cases that contains *valid*
+in their name in `org.apache.comet.CometCastSuite` you can use
+
+```sh
+mvn test -Dsuites="org.apache.comet.CometCastSuite valid" -Dskip.surefire.tests=true
+```
+
+Other options for selecting specific suites are described in the [ScalaTest Maven Plugin documentation](https://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin)
+
 ## Benchmark
 
 There's a `make` command to run micro benchmarks in the repo. For
diff --git a/pom.xml b/pom.xml
index 044a94c9..5b054f00 100644
--- a/pom.xml
+++ b/pom.xml
@@ -729,6 +729,7 @@ under the License.
             <systemPropertyVariables>
               <log4j.configurationFile>file:src/test/resources/log4j2.properties</log4j.configurationFile>
             </systemPropertyVariables>
+            <skipTests>${skip.surefire.tests}</skipTests>
           </configuration>
         </plugin>
         <plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org