Giter Site home page Giter Site logo

ddf-test's Introduction

ddf-test

Test suite for DDF

Running test suite

Change the engine in [global] section and queries for your engine in [your engine] section in ddf-conf/ddf_spec.ini. Add a ddf.ini file for your engine.

You can also create your own BaseSpec and then add its name to the baseSpec field in [your engine] section. An example baseSpec for AWS engine known as BaseSpecAWS is given. To use this baseSpecAWS add the AWS assembly jars and uncomment the lines corresponding to the same in baseSpecAWS.

There are two ways to add the ddf-on-x jars:

  • Execute the shell script which takes the location of a directory which has the ddf-on-x jars.
  • Add ddf-on-x implementation jar to lib directory.

Running the tests using the shell script

$ ./bin/DDFTestRunner.sh

//Enter the required jar files and java Options in the command prompt.

Hello, welcome to ddf-test. This script will ask you choose an engine and run the tests.

Choose your java options for tests (for spark: -Dhive.metastore.warehouse.dir=/tmp/hive/warehouse )

Enter your java options or leave blank and press [ENTER]:

Enter your ddf-on-x jar's location(required) and press [ENTER]:

Running the tests in sbt console

In this case , the lib directory contains ddf-on-x jars and any changes of java Options are made in build.sbt.

$ sbt

//to run all the tests
sbt> test

Reports:

To open the Html Reports of the tests generated, open index.html from target/test-reports directory in a web browser. Clicking on the DDFSpec suite, will show the test reports.

Note:

  • For spark implementation, before running tests, you may need to execute the following to remove files:
$ rm -r "./metastore_db/"
$ rm -r "/tmp/hive/"  //Run this if you used the java options for hive metastore directory for spark

  • Make sure that there are no duplicate jars present when adding jars to lib directory or when giving the jar directory in the shell script. Do not include scalatest and junit jars . Do not remove the asm-all-4.0.jar from the lib directory as it contains some essential classes required for the scalatest to generate a html report.

ddf-test's People

Contributors

shrutig avatar shiti avatar

Watchers

Satyaprakash Buddhavarapu avatar Rohit Rai avatar Aaruna Godthi avatar James Cloos avatar  avatar Evan Chan avatar  avatar Rajan Bharti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.