Github user squito commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23117#discussion_r236431048
  
    --- Diff: dev/run-tests.py ---
    @@ -434,6 +434,63 @@ def run_python_tests(test_modules, parallelism):
         run_cmd(command)
     
     
    +def run_python_tests_with_coverage(test_modules, parallelism):
    +    set_title_and_block("Running PySpark tests with coverage report", 
"BLOCK_PYSPARK_UNIT_TESTS")
    +
    +    command = [os.path.join(SPARK_HOME, "python", 
"run-tests-with-coverage")]
    +    if test_modules != [modules.root]:
    +        command.append("--modules=%s" % ','.join(m.name for m in 
test_modules))
    +    command.append("--parallelism=%i" % parallelism)
    +    run_cmd(command)
    --- End diff --
    
    this is mostly copied from ~L430, just "run-tests" -> 
"run-tests-with-coverage", could you refactor?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to