-
Notifications
You must be signed in to change notification settings - Fork 0
How to test IoTDB
Since IoTDB supports jdk8 and jdk11, you are welcome to test on two versions of jdk.
To compile IoTDB project, you can run: mvn clean package -Dmaven.test.skip=true
Remember that you have to use -Dmaven.test.skip=true
before you run tests, it is because some IT (integration test) requires jars in iotdb/iotdb/lib/
, and the folder is empty before you run mvn package
.
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"