Skip to content

thulab/java-native-api-testcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-native-api-test

Test the java native api of iotdb. This project is developed by java, maven and TestNG.

required environment

jdk: >= 17 maven: >= 3.9.8 iotdb: = 2.0.6-SNAPSHOT

configuration

  1. The iotdb connection(default is localhost):
common/src/resources/config.properties
  1. The iotdb-session dependency: the pom.xml of project
  2. Configure running test cases:
details/src/resources/testng.xml 

(Note: Running in Linux and Windows environments requires modifying the corresponding configuration in org/Apache/iotdb/API/test/utls/Customs Data Provider. java

functional Testing

Operation steps

Modify the config.propertiesconfiguration file,configure the iotdb connection,and use the default configuration for the rest.

# 1. compile jar
mvn clean package -DskipTests
# 2. run tests and generate html report
mvn surefire-report:report

Running time is approximately 30 minutes

report

After running, here is the reports:

details/target/site/surefire-report.html

Coverage Testing

Operation steps

Modify the config.propertiesconfiguration file,configure the iotdb connection,and make is_coverage=true,finally,run the run_coverage.xx script file.

report

After running, here is the reports:

jacoco/report/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages