Documentation > Development > Testing H-Store
H-Store comes with an extensive test suite that will verify the correctness of different aspects of the system, as well as the various research projeccts built on top of it. We now describe how to test both the Java and C++ portions of the system. If you simply want to execute all the tests at once, invoke the check target:
ant check
Java Tests
All of the test cases for the H-Store Java components are written using JUnit. To execute the tests for the core components of the system, you will use the junit target with the ant build configuration:
ant junit
To execute the entire JUnit test suite, you must first download the supplemental H-Store Files catalog. Note that this will take approximately 2GB of disk space:
ant junit-getfiles
Once the download is finished, you can invoke the junit-full command. This will take approximately 30-60 minutes depending on the hardware and requires at least 4GB of RAM:
ant junit-full
To execute a single test case, use the junitclass target in ant to execute the target test case class name:
ant junitclass -Djunitclass=[classname]
For example, to execute the TestCatalogUtil tests, one would use the following command:
ant junitclass -Djunitclass=TestCatalogUtil
To test the regression suite tests, use the junit-regression target. Note that this will automatically launch multiple H-Store instances on your machine so you will need at least a 2GB of DRAM available:
ant junit-regression
Execution Engine Tests
H-Store uses a custom testing framework for the C++ portion of the system. To execute these tests, invoke the eecheck using ant. No additional files need to be downloaded first.
ant eecheck