madlib-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From njayaram2 <...@git.apache.org>
Subject [GitHub] madlib pull request #290: madpack: Add madpack option to run unit tests.
Date Wed, 11 Jul 2018 18:38:32 GMT
GitHub user njayaram2 opened a pull request:

    https://github.com/apache/madlib/pull/290

    madpack: Add madpack option to run unit tests.

    JIRA: MADLIB-1252
    
    Unit tests in MADlib are written in python files, that are located in
    the ...<module_name>/test/unit_tests/ folders, whose names begin with
    the prefix "test_". This commit adds a new madpack option to run unit
    tests similar to how we run install and dev checks.
    
    - The new option added is: `unit-test`.
    - Sample usage (on a postgres database, with MADlib installed on
      database `madlib`):
      * Run unit tests on all modules that have it defined:
          src/bin/madpack -p postgres -c /madlib unit-test
      * Run unit tests only for the `convex` module:
          src/bin/madpack -p postgres -c /madlib unit-test -t convex
      * Run unit tests only for the `convex` and decision trees module:
          src/bin/madpack -p postgres -c /madlib unit-test -t
          convex,recursive_partitioning/decision_tree
    - Add command to run all unit tests in Jenkins build script.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/madlib/madlib madpack/unit-test

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/madlib/pull/290.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #290
    
----
commit 5f4395bc8548a5f74ba9a8fcb716f2a39ec51162
Author: Nandish Jayaram <njayaram@...>
Date:   2018-07-11T00:32:24Z

    madpack: Add madpack option to run unit tests.
    
    JIRA: MADLIB-1252
    
    Unit tests in MADlib are written in python files, that are located in
    the ...<module_name>/test/unit_tests/ folders, whose names begin with
    the prefix "test_". This commit adds a new madpack option to run unit
    tests similar to how we run install and dev checks.
    
    - The new option added is: `unit-test`.
    - Sample usage (on a postgres database, with MADlib installed on
      database `madlib`):
      * Run unit tests on all modules that have it defined:
          src/bin/madpack -p postgres -c /madlib unit-test
      * Run unit tests only for the `convex` module:
          src/bin/madpack -p postgres -c /madlib unit-test -t convex
      * Run unit tests only for the `convex` and decision trees module:
          src/bin/madpack -p postgres -c /madlib unit-test -t
          convex,recursive_partitioning/decision_tree
    - Add command to run all unit tests in Jenkins build script.

----


---

Mime
View raw message