-
Notifications
You must be signed in to change notification settings - Fork 600
Running the Tests
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.
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.
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.