You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/11/23 09:23:33 UTC

[GitHub] [iotdb] qiaojialin commented on a change in pull request #4371: [IOTDB-1559] Refactor the IT framework

qiaojialin commented on a change in pull request #4371:
URL: https://github.com/apache/iotdb/pull/4371#discussion_r754922292



##########
File path: integration/src/test/java/org/apache/iotdb/db/integration/IoTDBCreateStorageGroupIT.java
##########
@@ -40,24 +41,24 @@
  * Notice that, all test begins with "IoTDB" is integration test. All test which will start the
  * IoTDB server should be defined as integration test.
  */
+@Category({LocalStandaloneTest.class})

Review comment:
       I wonder why do not add ClusterTest...

##########
File path: integration/README.md
##########
@@ -0,0 +1,93 @@
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+
+Integration Testing
+===================
+
+All integration tests are in this module.
+
+Now integration testing supports three modes, the Local Standalone mode, the Cluster mode and the Remote mode.
+
+Integration Testing with Local Standalone Mode
+-------------------
+
+Integration testing with local standalone mode can be run with both maven and IDEs like IntelliJ.
+
+If you want run all tests include UT and IT, the maven command is:
+```
+mvn clean verify
+```
+
+Optionally, you can also only run IT, the maven command is:
+```
+mvn clean verify -pl integration
+```
+
+And if you want to run IT in the IDE like IntelliJ, pay attention to the `fork mode` in `run options`:
+you need to change `None` to `class` in `Fork mode`.

Review comment:
       Run(Menu) -> Edit Configurations -> Modify options
   Modify Run Configuration(IT file) -> Modify options




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org