Uploaded image for project: 'PredictionIO (Retired)'
  1. PredictionIO (Retired)
  2. PIO-56

Unit tests in module core should not require real setup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0-incubating
    • 0.12.0-incubating
    • Core
    • Tested with Mac OS X, i7, 8GB

    Description

      This issue affects only developers

      When downloading the code from github and trying to run the tests of the project core via sbt, one will face an error stating that the METADATA configuration is missing, e.g:
      [ERROR] [Storage$] Required repository (METADATA) configuration is missing.
      [ERROR] [Storage$] There were 1 configuration errors. Exiting.

      It looks like the project predictionio core requires a METADATA datasource (elasticsearch) installed and configured in the developer machine.

      There are some benefits if the project require less external installation/configuration:

      • Developers would have an easy setup of the environment.
      • Continuous integration would be easier

      How to reproduce:

      • Download predictionio from github
      • In root folder run ./make-distribution.sh
      • In root folder run sbt core/test

      Attachments

        Issue Links

          Activity

            People

              lucasbm Lucas Bonatto Miguel
              lucasbm Lucas Bonatto Miguel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: