Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Running the Tests

Luke Lovett edited this page May 4, 2015 · 3 revisions

This page describes how to run any of the tests included in this project.

There are two separate sets of tests: the Pig integration tests, and everything else. The reason that the Pig integration tests are isolated from everything else is the lack of a convenient Java client for Pig.

Running Tests for Hive, MapReduce, Flume, Streaming, and Pig Unit Tests

You can run this entire test suite with Gradle:

./gradlew test

This will also start a Hadoop cluster and a Hive server automatically. It does not start MongoDB, so make sure that there is a mongod running on 27017 before running the tests.

You can also run tests for each module individually:

./gradlew hive:test

will run all the tests for Hive, for example.

Test Assumptions and Dependencies

Some of the tests need to connect to MongoDB to run. The test suite does not automatically start MongoDB, so make sure to start MongoDB on port 27017 before running the tests.

The tests assume that you have mongoimport and mongoexport installed, and that these tools live in /usr/local/bin. If this is not where they live, then you can edit the ext.mongoimport and ext.mongoexport variables in build.gradle to point to the right location.

Clone this wiki locally