tree: 46fc029521033c0e482832b9474940767de63660 [path history] [tgz]
  1. src/
  2. checkstyle.xml
  3. import-control.xml
  4. pom.xml
  5. README.md
integration-test/README.md

Integration Test For the MPP Architecture

Integration test for the mpp architecture are in this module.

Now integration testing supports the Cluster mode and the Local Standalone mode.

Integration Testing with Cluster Mode

You can run the integration test in cluster mode. At present, we have implemented a pseudo cluster with 1 config nodes and 3 data nodes. (As the test cases and the test environment are decoupled, we can easily implement other pseudo cluster or even a docker-based cluster later.)

The maven command is:

mvn clean verify -DskipUTs -pl integration-test -am -PClusterIT

Notice that, this above maven command only run IT.


Run in IntelliJ in cluster mode is so easy,

  • Step 0. Optionally, when you run the test for the first time, or when you change the code of the module that the integration test module depends on, you may need to use the following command to generate integration-test/target/template-node for nodes of the pseudo cluster.
mvn clean package -DskipTests -pl integration-test -am -PClusterIT
  • Step 1. Run(Menu) -> Edit Configurations...
    Run(Menu)

  • Step 2. Add New Configuration -> JUnit
    Add New Configuration

  • Step 3. Input some fields as the following picture
    ClusterIT Category

Integration Testing with Local Standalone Mode

Integration testing with local standalone mode can be run with both maven and IDEs like IntelliJ.

The maven command is:

mvn clean verify -DskipUTs -pl integration-test -am -PLocalStandaloneOnMppIT

And if you want to run IT in the IDE like IntelliJ, you need to achieve the effect as the LocalStandaloneOnMppIT profile in maven. Follow Steps 1-4 to achieve it.

  • Step 0. Optionally, when you run the test for the first time, or when you change the code of the module that the integration test module depends on, you may need to use the following command to generate integration-test/target/template-node for the node of the local standalone.
    It has the same effect as step 0 of the cluster mode counterpart; these two command's generations are the same content.
mvn clean package -DskipTests -pl integration-test -am -PLocalStandaloneOnMppIT
  • Step 1. Run(Menu) -> Edit Configurations...
    Run(Menu)

  • Step 2. Add New Configuration -> JUnit
    Add New Configuration

  • Step 3. Input some fields as the following picture
    StandaloneOnMppIT Category