Skip to content

How to test IoTDB

XuYi edited this page Jan 7, 2019 · 4 revisions

Once you finish your development, you need run unit and integration tests to check the correctness. Since there are several modules and their configurations are different。 Please follow the steps below.

  • Tsfile Unit Test
$ mvn clean test -pl tsfile
  • JDBC Unit Test
$ mvn clean test -pl jdbc -am -Dtsfile.test.skip=true
  • iotdb-cli Unit Test
$ mvn clean package -Dmaven.test.skip=true
$ mvn test -pl iotdb-cli -am -Dtsfile.test.skip=true -Djdbc.test.skip=true
  • grafana Test

Since this grafana connector does not have any unit test, you should try to start IoTDB, Grafana and iotdb-grafana connector to check whether it works, see here.

  • IoTDB Unit Test
$ mvn clean test -pl iotdb -am -Dtsfile.test.skip=true -Djdbc.test.skip=true -Dit.test.excludes="**/IoTDB*Test.java"
  • IoTDB Integration Test

In current version, our integration test only supports linxu/OSX plaform. We will support Windows soon.

$ mvn clean test -pl iotdb -am -Dtsfile.test.skip=true -Djdbc.test.skip=true -Dit.test.includes="**/IoTDB*Test.java"

Finally, since IoTDB support jdk8 and jdk11, you are welcome to test on two versions of jdk.

Clone this wiki locally